Conversation
| </trans-unit> | ||
| <trans-unit id="plugin.tea_index.title"> | ||
| <source>Tea Index</source> | ||
| <target>Tea Index</target> |
There was a problem hiding this comment.
English: Tea list
German: Teeliste
| <target>Tee-Einzelansicht</target> | ||
| </trans-unit> | ||
| <trans-unit id="plugin.tea_frontend_editor" approved="yes"> | ||
| <trans-unit id="plugin.tea_front_end_editor" approved="yes"> |
There was a problem hiding this comment.
I mean that the label was missing before, but now it seems to be there. I'll change it.
| @@ -0,0 +1,16 @@ | |||
| mod.wizards.newContentElement.wizardItems.ext-tea { | |||
There was a problem hiding this comment.
Let's move adding the wizard to a separate, later PR.
| use TYPO3\CMS\Install\Attribute\UpgradeWizard; | ||
|
|
||
| #[UpgradeWizard('teaListTypeToCTypeUpdate')] | ||
| final class ListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate |
There was a problem hiding this comment.
This upgrade wizard needs functional tests.
There was a problem hiding this comment.
Also, we need tests for the copied base class. (When we copy code, it becomes our responsibility, and it then falls under the same code quality standards as the rest of our code.)
There was a problem hiding this comment.
@oliverklee I added some functional tests for the Upgrade Wizard.
As for the copied base class: I don't want to put so much work into a class that I only need for one version. Is there a solution that would suit both you and me? Otherwise, I suggest opening a separate PR for this issue.
Build/phpstan/phpstan.neon
Outdated
| message: 'Use PSR-7 API instead' | ||
|
|
||
| excludePaths: | ||
| # We need this Class only for V12. So we exclude it here |
There was a problem hiding this comment.
No, we should allow PHPStan to scan it. It should be possible to run the upgrade wizard in V13 as well.
There was a problem hiding this comment.
@oliverklee in V13 this Class is in cms-install. So we don't need the Class from Lina. For that reason I decided to exclude it from PHPStan.
There was a problem hiding this comment.
Please don't exclude the upgrade wizard from PHPStan. Otherwise, if it is not scanned, we cannot see any warnings in the class.
Build/phpstan/phpstan.neon
Outdated
| message: 'Use PSR-7 API instead' | ||
|
|
||
| excludePaths: | ||
| # We need this Class only for V12. So we exclude it here |
There was a problem hiding this comment.
Please don't exclude the upgrade wizard from PHPStan. Otherwise, if it is not scanned, we cannot see any warnings in the class.
| use TYPO3\CMS\Install\Attribute\UpgradeWizard; | ||
|
|
||
| #[UpgradeWizard('teaListTypeToCTypeUpdate')] | ||
| final class ListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate |
There was a problem hiding this comment.
Also, we need tests for the copied base class. (When we copy code, it becomes our responsibility, and it then falls under the same code quality standards as the rest of our code.)
23af684 to
14eba5a
Compare
a5d21e9 to
4b130dc
Compare
Pull Request Test Coverage Report for Build 21594813326Details
💛 - Coveralls |
|
@Starkmann Could you please rebase this branch? This hopefully also should get rid of the "merge main into this branch" commit. |
|
AbstractListTypeToCTypeUpdate is tested in ListTypeToCTypeUpdateTest |
I get really strange conflicts when rebasing. |
|
Marking as draft so we know this PR isn't intended to be merged. |
Fixes #1332