diff --git a/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddStaticFileIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc b/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddStaticFileIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc index 5ce238fee..2a611480f 100644 --- a/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddStaticFileIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc +++ b/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddStaticFileIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc @@ -16,6 +16,7 @@ $_EXTKEY = 'extension3'; namespace Ssch\TYPO3Rector\Tests\Rector\CodeQuality\Rector\General\MoveExtensionManagementUtilityAddStaticFileIntoTCAOverridesRector\Fixture; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; + $variable = 'extension3'; $_EXTKEY = 'extension3'; ExtensionManagementUtility::addStaticFile('doing' . $variable . 'weirdStuff', 'Configuration/TypoScript', 'Title'); diff --git a/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddToAllTCAtypesIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc b/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddToAllTCAtypesIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc index 055193e99..51068c369 100644 --- a/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddToAllTCAtypesIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc +++ b/tests/Rector/CodeQuality/Rector/General/MoveExtensionManagementUtilityAddToAllTCAtypesIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc @@ -15,6 +15,7 @@ $variable = 'tt_content'; namespace Ssch\TYPO3Rector\Tests\Rector\CodeQuality\Rector\General\MoveExtensionManagementUtilityAddToAllTCAtypesIntoTCAOverridesRector\Fixture; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; + $variable = 'tt_content'; ExtensionManagementUtility::addToAllTCAtypes('doing' . $variable . 'weirdStuff', 'new_field', '', 'after:c'); diff --git a/tests/Rector/CodeQuality/Rector/General/MoveExtensionUtilityRegisterPluginIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc b/tests/Rector/CodeQuality/Rector/General/MoveExtensionUtilityRegisterPluginIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc index c86e39f7e..a76874946 100644 --- a/tests/Rector/CodeQuality/Rector/General/MoveExtensionUtilityRegisterPluginIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc +++ b/tests/Rector/CodeQuality/Rector/General/MoveExtensionUtilityRegisterPluginIntoTCAOverridesRector/Fixture/extension3/ext_tables.php.inc @@ -16,6 +16,7 @@ $_EXTKEY = 'extension3'; namespace Ssch\TYPO3Rector\Tests\Rector\CodeQuality\Rector\General\MoveExtensionUtilityRegisterPluginIntoTCAOverridesRector\Fixture; use TYPO3\CMS\Extbase\Utility\ExtensionUtility; + $_EXTKEY = 'extension3'; // Once the rule RegisterPluginWithVendorNameRector does its job, we can move it afterwards ExtensionUtility::registerPlugin('Vendor.' . $_EXTKEY, 'PluginName', 'My Title'); diff --git a/tests/Rector/v10/v1/SendNotifyEmailToMailApiRector/Fixture/send_notify_tsfe_cobj.php.inc b/tests/Rector/v10/v1/SendNotifyEmailToMailApiRector/Fixture/send_notify_tsfe_cobj.php.inc index 62d390c55..168ae5874 100644 --- a/tests/Rector/v10/v1/SendNotifyEmailToMailApiRector/Fixture/send_notify_tsfe_cobj.php.inc +++ b/tests/Rector/v10/v1/SendNotifyEmailToMailApiRector/Fixture/send_notify_tsfe_cobj.php.inc @@ -27,6 +27,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Mail\MailMessage; use Symfony\Component\Mime\Address; use TYPO3\CMS\Core\Utility\MailUtility; + class MyService { public function init() diff --git a/tests/Rector/v10/v2/MoveApplicationContextToEnvironmentApiRector/Fixture/use-environment-api.php.inc b/tests/Rector/v10/v2/MoveApplicationContextToEnvironmentApiRector/Fixture/use-environment-api.php.inc index 7b222f386..a0002b7ea 100644 --- a/tests/Rector/v10/v2/MoveApplicationContextToEnvironmentApiRector/Fixture/use-environment-api.php.inc +++ b/tests/Rector/v10/v2/MoveApplicationContextToEnvironmentApiRector/Fixture/use-environment-api.php.inc @@ -7,4 +7,5 @@ getVersion(); $typo3Branch = GeneralUtility::makeInstance(Typo3Version::class)->getBranch(); diff --git a/tests/Rector/v11/v0/DateTimeAspectInsteadOfGlobalsExecTimeRector/Fixture/datetime_aspect_instead_of_globals.php.inc b/tests/Rector/v11/v0/DateTimeAspectInsteadOfGlobalsExecTimeRector/Fixture/datetime_aspect_instead_of_globals.php.inc index 221e9261d..cdfedc85b 100644 --- a/tests/Rector/v11/v0/DateTimeAspectInsteadOfGlobalsExecTimeRector/Fixture/datetime_aspect_instead_of_globals.php.inc +++ b/tests/Rector/v11/v0/DateTimeAspectInsteadOfGlobalsExecTimeRector/Fixture/datetime_aspect_instead_of_globals.php.inc @@ -41,6 +41,7 @@ namespace Ssch\TYPO3Rector\Tests\Rector\v11\v0\DateTimeAspectInsteadOfGlobalsExe use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Context\Context; + class MyClass { /** diff --git a/tests/Rector/v11/v0/SubstituteConstantsModeAndRequestTypeRector/Fixture/application_type.php.inc b/tests/Rector/v11/v0/SubstituteConstantsModeAndRequestTypeRector/Fixture/application_type.php.inc index 286d6e540..b261cbf4f 100644 --- a/tests/Rector/v11/v0/SubstituteConstantsModeAndRequestTypeRector/Fixture/application_type.php.inc +++ b/tests/Rector/v11/v0/SubstituteConstantsModeAndRequestTypeRector/Fixture/application_type.php.inc @@ -49,6 +49,7 @@ class MyController namespace Ssch\TYPO3Rector\Tests\Rector\v11\v0\SubstituteConstantsModeAndRequestTypeRector\Fixture; use TYPO3\CMS\Core\Http\ApplicationType; + defined('TYPO3') or die(); class MyController diff --git a/tests/Rector/v11/v4/ProvideCObjViaMethodRector/Fixture/change_public_property.php.inc b/tests/Rector/v11/v4/ProvideCObjViaMethodRector/Fixture/change_public_property.php.inc index 42489625f..0e7a1e76e 100644 --- a/tests/Rector/v11/v4/ProvideCObjViaMethodRector/Fixture/change_public_property.php.inc +++ b/tests/Rector/v11/v4/ProvideCObjViaMethodRector/Fixture/change_public_property.php.inc @@ -14,6 +14,7 @@ class Foo namespace Ssch\TYPO3Rector\Tests\Rector\v11\v4\ProvideCObjViaMethodRector\Fixture; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; + class Foo { protected $cObj;