diff --git a/src/Maker/MakeTest.php b/src/Maker/MakeTest.php index ca9997976..4a8da41ec 100644 --- a/src/Maker/MakeTest.php +++ b/src/Maker/MakeTest.php @@ -146,7 +146,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen "test/$type.tpl.php", [ 'web_assertions_are_available' => trait_exists(WebTestAssertionsTrait::class), - 'api_test_case_fqcn' => !class_exists(ApiTestCase::class) ? LegacyApiTestCase::class : ApiTestCase::class, + 'api_test_case_fqcn' => ApiTestCase::class, ] ); @@ -185,7 +185,7 @@ public function configureDependencies(DependencyBuilder $dependencies, InputInte case 'ApiTestCase': $dependencies->addClassDependency( - !class_exists(ApiTestCase::class) ? LegacyApiTestCase::class : ApiTestCase::class, + ApiTestCase::class, 'api', true, false