diff --git a/config/typo3-testingframework/typo3-testingframework-7.php b/config/typo3-testingframework/typo3-testingframework-7.php index 210a1535d..bf0fadcd1 100644 --- a/config/typo3-testingframework/typo3-testingframework-7.php +++ b/config/typo3-testingframework/typo3-testingframework-7.php @@ -6,8 +6,10 @@ use PHPStan\Type\BooleanType; use PHPStan\Type\StringType; use Rector\Config\RectorConfig; +use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\TypeDeclaration\Rector\Property\AddPropertyTypeDeclarationRector; use Rector\TypeDeclaration\ValueObject\AddPropertyTypeDeclaration; +use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; return static function (RectorConfig $rectorConfig): void { $rectorConfig->import(__DIR__ . '/../config.php'); @@ -40,4 +42,12 @@ new ArrayType(new StringType(), new StringType()) ), ]); + + $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ + new MethodCallRename( + FunctionalTestCase::class, + 'executeFrontendRequest', + 'executeFrontendSubRequest' + ), + ]); };