You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8.1.4
Symfony CLI version 5.4.7
Symfony 6.0.x API Platform 2.6
I confirm that I have the same problem.
The make:test generates the test for me with use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; while I only own the class use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase; (because i have API Platform 2.6)
It seems to be related to from this PR, for anticipated version 3.0 of API Platform, which apparently indicates that use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase; will be deprecated in 2.7 and become invalid in 3.0 .
You should use use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; from API Platform version 2.7.
Symfony version(s) affected
6.0.x
Description
Generating a new
ApiTestCase
via cli results in failing tests. It seems as the generator uses the wrong class path.How to reproduce
run
results in
Possible Solution
In the resulting
tests/ExampleTest.php
, cange the import:Additional Context
PHP 8.1.3
Symfony CLI version 5.4.7
The text was updated successfully, but these errors were encountered: