Skip to content

Commit

Permalink
Merge pull request #1108 from mdoutreluingne/fix-path-api-test-case
Browse files Browse the repository at this point in the history
[make:test] Removal of the condition requiring a php version < 8.1
  • Loading branch information
jrushlow committed May 3, 2022
2 parents 33a18db + fb8d2bf commit cd0d38e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Maker/MakeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
[
'web_assertions_are_available' => trait_exists(WebTestAssertionsTrait::class),
'use_legacy_container_property' => $this->useLegacyContainerProperty(),
'api_test_case_fqcn' => \PHP_VERSION_ID < 80100 && !class_exists(ApiTestCase::class) ? LegacyApiTestCase::class : ApiTestCase::class,
'api_test_case_fqcn' => !class_exists(ApiTestCase::class) ? LegacyApiTestCase::class : ApiTestCase::class,
]
);

Expand Down Expand Up @@ -188,7 +188,7 @@ public function configureDependencies(DependencyBuilder $dependencies, InputInte

case 'ApiTestCase':
$dependencies->addClassDependency(
\PHP_VERSION_ID < 80100 && !class_exists(ApiTestCase::class) ? LegacyApiTestCase::class : ApiTestCase::class,
!class_exists(ApiTestCase::class) ? LegacyApiTestCase::class : ApiTestCase::class,
'api',
true,
false
Expand Down

0 comments on commit cd0d38e

Please sign in to comment.