diff --git a/composer.json b/composer.json index dd1c23e9a88..60892961863 100644 --- a/composer.json +++ b/composer.json @@ -104,6 +104,7 @@ "api-platform/serializer": "self.version", "api-platform/state": "self.version", "api-platform/symfony": "self.version", + "api-platform/test": "self.version", "api-platform/validator": "self.version" }, "require": { diff --git a/docs/guides/computed-field.php b/docs/guides/computed-field.php index 24b86bacee3..d6d4c230d5c 100644 --- a/docs/guides/computed-field.php +++ b/docs/guides/computed-field.php @@ -264,7 +264,7 @@ public function up(Schema $schema): void namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; final class ComputedFieldTest extends ApiTestCase { diff --git a/docs/guides/create-a-custom-doctrine-filter.php b/docs/guides/create-a-custom-doctrine-filter.php index 6ed8bf31bac..a6f03bddabc 100644 --- a/docs/guides/create-a-custom-doctrine-filter.php +++ b/docs/guides/create-a-custom-doctrine-filter.php @@ -120,7 +120,7 @@ public function up(Schema $schema): void namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; use App\Entity\Book; final class BookTest extends ApiTestCase diff --git a/docs/guides/custom-pagination.php b/docs/guides/custom-pagination.php index a83bac18724..7ed4a0181ae 100644 --- a/docs/guides/custom-pagination.php +++ b/docs/guides/custom-pagination.php @@ -147,7 +147,7 @@ public function load(ObjectManager $manager): void namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; use App\Entity\Book; final class BookTest extends ApiTestCase diff --git a/docs/guides/doctrine-entity-as-resource.php b/docs/guides/doctrine-entity-as-resource.php index b6d2a3b88e4..6cf1aa1b8f6 100644 --- a/docs/guides/doctrine-entity-as-resource.php +++ b/docs/guides/doctrine-entity-as-resource.php @@ -89,7 +89,7 @@ public function load(ObjectManager $manager): void namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; final class BookTest extends ApiTestCase { diff --git a/docs/guides/doctrine-search-filter.php b/docs/guides/doctrine-search-filter.php index bcf94c57336..e77084966d6 100644 --- a/docs/guides/doctrine-search-filter.php +++ b/docs/guides/doctrine-search-filter.php @@ -104,7 +104,7 @@ public function load(ObjectManager $manager): void namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; use App\Entity\Book; final class BookTest extends ApiTestCase diff --git a/docs/guides/error-provider.php b/docs/guides/error-provider.php index e417904008b..dba39c8f38a 100644 --- a/docs/guides/error-provider.php +++ b/docs/guides/error-provider.php @@ -84,7 +84,7 @@ function configure(ContainerConfigurator $configurator): void namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; final class BookTest extends ApiTestCase { diff --git a/docs/guides/error-resource.php b/docs/guides/error-resource.php index aee265e2831..866affaaf04 100644 --- a/docs/guides/error-resource.php +++ b/docs/guides/error-resource.php @@ -71,7 +71,7 @@ public static function provide(Operation $operation, array $uriVariables = [], a namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; final class BookTest extends ApiTestCase { diff --git a/docs/guides/extend-openapi-documentation.php b/docs/guides/extend-openapi-documentation.php index 0f7c0a62d68..3e2227c22e8 100644 --- a/docs/guides/extend-openapi-documentation.php +++ b/docs/guides/extend-openapi-documentation.php @@ -48,7 +48,7 @@ class Book namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; final class BookTest extends ApiTestCase { diff --git a/docs/guides/how-to.php b/docs/guides/how-to.php index 79aaa2a99c1..0d3aa856d34 100644 --- a/docs/guides/how-to.php +++ b/docs/guides/how-to.php @@ -124,7 +124,7 @@ function request(): Request namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; use App\Entity\Book; final class BookTest extends ApiTestCase diff --git a/docs/guides/http-cache-tags.php b/docs/guides/http-cache-tags.php index 9fdc9e543d3..0dda04efc18 100644 --- a/docs/guides/http-cache-tags.php +++ b/docs/guides/http-cache-tags.php @@ -96,7 +96,7 @@ function request(): Request namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; final class BookTest extends ApiTestCase { diff --git a/docs/guides/return-the-iri-of-your-resources-relations.php b/docs/guides/return-the-iri-of-your-resources-relations.php index 41fb3b779a9..8f27272ce71 100644 --- a/docs/guides/return-the-iri-of-your-resources-relations.php +++ b/docs/guides/return-the-iri-of-your-resources-relations.php @@ -173,7 +173,7 @@ function request(): Request } namespace App\Tests { - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; use App\ApiResource\Brand; final class BrandTest extends ApiTestCase diff --git a/docs/guides/test-your-api.php b/docs/guides/test-your-api.php index c0fea83ace5..fe0849ac859 100644 --- a/docs/guides/test-your-api.php +++ b/docs/guides/test-your-api.php @@ -9,10 +9,10 @@ namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; use App\ApiResource\Book; - // API Platform [testing utilities](/docs/core/testing/) provides an [ApiTestCase](/docs/reference/Symfony/Bundle/Test/ApiTestCase/) + // API Platform [testing utilities](/docs/core/testing/) provides an [ApiTestCase](/docs/reference/Test/ApiTestCase/) // that allows you to send an HTTP Request, and to perform assertions on the Response. final class BookTest extends ApiTestCase { @@ -20,7 +20,7 @@ final class BookTest extends ApiTestCase public function testBookDoesNotExists(): void { - // For starters we can get an [HTTP Client](/docs/reference/Symfony/Bundle/Test/Client/) with the `createClient` method. + // For starters we can get an [HTTP Client](/docs/reference/Test/Client/) with the `createClient` method. $client = static::createClient(); // Then, issue an HTTP request via this client, as we didn't load any data we'd expect this to send a 404 Not found. $client->request(method: 'GET', url: '/books/1'); diff --git a/docs/guides/validate-incoming-data.php b/docs/guides/validate-incoming-data.php index afefd71189a..d7a81dbc60e 100644 --- a/docs/guides/validate-incoming-data.php +++ b/docs/guides/validate-incoming-data.php @@ -121,7 +121,7 @@ function request(): Request namespace App\Tests { use ApiPlatform\Playground\Test\TestGuideTrait; - use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; + use ApiPlatform\Test\ApiTestCase; final class BookTest extends ApiTestCase { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index d621e1f5e89..782c41a1999 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -13,7 +13,7 @@ parameters: objectManagerLoader: tests/Fixtures/app/object-manager.php bootstrapFiles: # We're aliasing classes for phpunit in this file, it needs to be added here see phpstan/#2194 - - src/Symfony/Bundle/Test/Constraint/ArraySubset.php + - src/Test/Constraint/ArraySubset.php - tests/Fixtures/app/AppKernel.php excludePaths: @@ -152,7 +152,7 @@ parameters: - src/Metadata/Tests - src/OpenApi/Tests - src/Serializer/Tests - - src/Symfony/Bundle/Test + - src/Test - src/Symfony/Tests - tests - @@ -174,7 +174,7 @@ parameters: - identifier: argument.templateType paths: - - src/Symfony/Bundle/Test + - src/Test - tests - src # TODO diff --git a/src/Symfony/Bundle/DependencyInjection/Compiler/TestClientPass.php b/src/Symfony/Bundle/DependencyInjection/Compiler/TestClientPass.php index 47ffb3dab3b..bd0c4bddb65 100644 --- a/src/Symfony/Bundle/DependencyInjection/Compiler/TestClientPass.php +++ b/src/Symfony/Bundle/DependencyInjection/Compiler/TestClientPass.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler; -use ApiPlatform\Symfony\Bundle\Test\Client; +use ApiPlatform\Test\Client; use Symfony\Component\BrowserKit\AbstractBrowser; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Symfony/Bundle/Test/ApiTestAssertionsTrait.php b/src/Test/ApiTestAssertionsTrait.php similarity index 98% rename from src/Symfony/Bundle/Test/ApiTestAssertionsTrait.php rename to src/Test/ApiTestAssertionsTrait.php index 7ac6daa9080..573bf35e113 100644 --- a/src/Symfony/Bundle/Test/ApiTestAssertionsTrait.php +++ b/src/Test/ApiTestAssertionsTrait.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test; +namespace ApiPlatform\Test; use ApiPlatform\JsonSchema\BackwardCompatibleSchemaFactory; use ApiPlatform\JsonSchema\Schema; @@ -19,8 +19,8 @@ use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\GetCollection; use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface; -use ApiPlatform\Symfony\Bundle\Test\Constraint\ArraySubset; -use ApiPlatform\Symfony\Bundle\Test\Constraint\MatchesJsonSchema; +use ApiPlatform\Test\Constraint\ArraySubset; +use ApiPlatform\Test\Constraint\MatchesJsonSchema; use PHPUnit\Framework\Constraint\JsonMatches; use PHPUnit\Framework\ExpectationFailedException; use Symfony\Bundle\FrameworkBundle\Test\BrowserKitAssertionsTrait; diff --git a/src/Symfony/Bundle/Test/ApiTestCase.php b/src/Test/ApiTestCase.php similarity index 99% rename from src/Symfony/Bundle/Test/ApiTestCase.php rename to src/Test/ApiTestCase.php index 211ed631528..5a3cae76775 100644 --- a/src/Symfony/Bundle/Test/ApiTestCase.php +++ b/src/Test/ApiTestCase.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test; +namespace ApiPlatform\Test; use ApiPlatform\Metadata\IriConverterInterface; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; diff --git a/src/Symfony/Bundle/Test/Client.php b/src/Test/Client.php similarity index 99% rename from src/Symfony/Bundle/Test/Client.php rename to src/Test/Client.php index 1936314ab54..90a2375263f 100644 --- a/src/Symfony/Bundle/Test/Client.php +++ b/src/Test/Client.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test; +namespace ApiPlatform\Test; use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Component\BrowserKit\CookieJar; diff --git a/src/Symfony/Bundle/Test/ClientTrait.php b/src/Test/ClientTrait.php similarity index 92% rename from src/Symfony/Bundle/Test/ClientTrait.php rename to src/Test/ClientTrait.php index 147236420cf..3dd549057b5 100644 --- a/src/Symfony/Bundle/Test/ClientTrait.php +++ b/src/Test/ClientTrait.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test; +namespace ApiPlatform\Test; trait ClientTrait { diff --git a/src/Symfony/Bundle/Test/Constraint/ArraySubset.php b/src/Test/Constraint/ArraySubset.php similarity index 92% rename from src/Symfony/Bundle/Test/Constraint/ArraySubset.php rename to src/Test/Constraint/ArraySubset.php index 1078a7a4135..81564443d23 100644 --- a/src/Symfony/Bundle/Test/Constraint/ArraySubset.php +++ b/src/Test/Constraint/ArraySubset.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test\Constraint; +namespace ApiPlatform\Test\Constraint; use PHPUnit\Framework\Constraint\Constraint; diff --git a/src/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php b/src/Test/Constraint/ArraySubsetTrait.php similarity index 97% rename from src/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php rename to src/Test/Constraint/ArraySubsetTrait.php index 12acdc6dc40..fffa1d85f83 100644 --- a/src/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php +++ b/src/Test/Constraint/ArraySubsetTrait.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test\Constraint; +namespace ApiPlatform\Test\Constraint; use SebastianBergmann\Comparator\ComparisonFailure; use SebastianBergmann\Exporter\Exporter; diff --git a/src/Symfony/Bundle/Test/Constraint/MatchesJsonSchema.php b/src/Test/Constraint/MatchesJsonSchema.php similarity index 98% rename from src/Symfony/Bundle/Test/Constraint/MatchesJsonSchema.php rename to src/Test/Constraint/MatchesJsonSchema.php index d16ba5e9539..90ac8ad43a2 100644 --- a/src/Symfony/Bundle/Test/Constraint/MatchesJsonSchema.php +++ b/src/Test/Constraint/MatchesJsonSchema.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test\Constraint; +namespace ApiPlatform\Test\Constraint; use JsonSchema\Validator; use PHPUnit\Framework\Constraint\Constraint; diff --git a/src/Test/README.md b/src/Test/README.md new file mode 100644 index 00000000000..1a513a53859 --- /dev/null +++ b/src/Test/README.md @@ -0,0 +1,14 @@ +# API Platform - Test + +Functional testing utilities for the [API Platform](https://api-platform.com) framework. + +Provides `ApiTestCase` and test assertions for building functional tests for API Platform applications. + +[Documentation](https://api-platform.com/docs/core/testing/) + +> [!CAUTION] +> +> This is a read-only sub split of `api-platform/core`, please +> [report issues](https://github.com/api-platform/core/issues) and +> [send Pull Requests](https://github.com/api-platform/core/pulls) +> in the [core API Platform repository](https://github.com/api-platform/core). diff --git a/src/Symfony/Bundle/Test/Response.php b/src/Test/Response.php similarity index 99% rename from src/Symfony/Bundle/Test/Response.php rename to src/Test/Response.php index 3ac943beedf..dfaae6e05e2 100644 --- a/src/Symfony/Bundle/Test/Response.php +++ b/src/Test/Response.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace ApiPlatform\Symfony\Bundle\Test; +namespace ApiPlatform\Test; use Symfony\Component\BrowserKit\Response as BrowserKitResponse; use Symfony\Component\HttpClient\Exception\ClientException; diff --git a/src/Test/composer.json b/src/Test/composer.json new file mode 100644 index 00000000000..02e946521d1 --- /dev/null +++ b/src/Test/composer.json @@ -0,0 +1,68 @@ +{ + "name": "api-platform/test", + "description": "Testing utilities for API Platform", + "type": "library", + "keywords": [ + "REST", + "API", + "GraphQL", + "JSON-LD", + "Test", + "PHPUnit" + ], + "homepage": "https://api-platform.com", + "license": "MIT", + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "Antoine Bluchet", + "email": "soyuka@gmail.com", + "homepage": "https://soyuka.me" + } + ], + "require": { + "php": ">=8.2", + "api-platform/metadata": "^4.3", + "api-platform/json-schema": "^4.3", + "phpunit/phpunit": "^12.2", + "symfony/browser-kit": "^6.4 || ^7.0 || ^8.0", + "symfony/http-client": "^6.4 || ^7.0 || ^8.0", + "symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0" + }, + "suggest": { + "doctrine/orm": "To use findIriBy() with Doctrine ORM", + "doctrine/mongodb-odm": "To use findIriBy() with MongoDB", + "justinrainbow/json-schema": "To validate JSON schemas in assertions" + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Test\\": "" + } + }, + "config": { + "preferred-install": { + "*": "dist" + }, + "sort-packages": true, + "allow-plugins": { + "composer/package-versions-deprecated": true, + "phpstan/extension-installer": true, + "php-http/discovery": true + } + }, + "extra": { + "branch-alias": { + "dev-main": "4.4.x-dev" + }, + "thanks": { + "name": "api-platform/api-platform", + "url": "https://github.com/api-platform/api-platform" + } + }, + "minimum-stability": "beta", + "prefer-stable": true +} \ No newline at end of file diff --git a/tests/Behat/JsonContext.php b/tests/Behat/JsonContext.php index 4450465fd08..cef891a41fa 100644 --- a/tests/Behat/JsonContext.php +++ b/tests/Behat/JsonContext.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Behat; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use Behat\Gherkin\Node\PyStringNode; use Behat\Mink\Exception\ExpectationException; use Behatch\Context\JsonContext as BaseJsonContext; diff --git a/tests/Functional/ArrayDtoTest.php b/tests/Functional/ArrayDtoTest.php index de7bce8e1a9..9ce5a88b57c 100644 --- a/tests/Functional/ArrayDtoTest.php +++ b/tests/Functional/ArrayDtoTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6211\ArrayPropertyDtoOperation; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/BackedEnumFilterTest.php b/tests/Functional/BackedEnumFilterTest.php index 224ded4dc49..944f361c484 100644 --- a/tests/Functional/BackedEnumFilterTest.php +++ b/tests/Functional/BackedEnumFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue7126\DummyForBackedEnumFilter; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue7126\IntegerBackedEnum; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue7126\StringBackedEnum; diff --git a/tests/Functional/BackedEnumPropertyTest.php b/tests/Functional/BackedEnumPropertyTest.php index 335a5196287..09836cd5b00 100644 --- a/tests/Functional/BackedEnumPropertyTest.php +++ b/tests/Functional/BackedEnumPropertyTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Person as PersonDocument; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Person; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\PersonToPet; diff --git a/tests/Functional/BackedEnumResourceTest.php b/tests/Functional/BackedEnumResourceTest.php index 94abdf74921..13df4afa55c 100644 --- a/tests/Functional/BackedEnumResourceTest.php +++ b/tests/Functional/BackedEnumResourceTest.php @@ -16,7 +16,7 @@ use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\GetCollection; use ApiPlatform\Metadata\Link; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\BackedEnumIntegerResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\BackedEnumStringResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6264\Availability; diff --git a/tests/Functional/DateTimeNormalizerPriorityTest.php b/tests/Functional/DateTimeNormalizerPriorityTest.php index b3ad733b6cc..9b9e6ee3905 100644 --- a/tests/Functional/DateTimeNormalizerPriorityTest.php +++ b/tests/Functional/DateTimeNormalizerPriorityTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\DateTimeNormalizationIssue; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/DefaultParametersTest.php b/tests/Functional/DefaultParametersTest.php index 5653093fa6d..8753b7998fd 100644 --- a/tests/Functional/DefaultParametersTest.php +++ b/tests/Functional/DefaultParametersTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; /** * Tests that default parameters configured via api_platform.defaults.parameters diff --git a/tests/Functional/DeprecationHeaderTest.php b/tests/Functional/DeprecationHeaderTest.php index bdebfe481e7..dc7aee1b72c 100644 --- a/tests/Functional/DeprecationHeaderTest.php +++ b/tests/Functional/DeprecationHeaderTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\DeprecationHeader; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Doctrine/ComputedFieldTest.php b/tests/Functional/Doctrine/ComputedFieldTest.php index 2433425b5d9..7a3aba61058 100644 --- a/tests/Functional/Doctrine/ComputedFieldTest.php +++ b/tests/Functional/Doctrine/ComputedFieldTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Doctrine; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Cart; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\CartProduct; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Doctrine/ContextSwitchTest.php b/tests/Functional/Doctrine/ContextSwitchTest.php index 3fc1564492f..52160b69e32 100644 --- a/tests/Functional/Doctrine/ContextSwitchTest.php +++ b/tests/Functional/Doctrine/ContextSwitchTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Doctrine; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\DummyContext; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\DummyContextRelated; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Doctrine/EntityReadOnlyTest.php b/tests/Functional/Doctrine/EntityReadOnlyTest.php index 106da2f173b..28e84c591e2 100644 --- a/tests/Functional/Doctrine/EntityReadOnlyTest.php +++ b/tests/Functional/Doctrine/EntityReadOnlyTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Doctrine; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\DummyReadOnly; use ApiPlatform\Tests\RecreateSchemaTrait; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Doctrine/PartialPaginationMappedTest.php b/tests/Functional/Doctrine/PartialPaginationMappedTest.php index 0342c392649..7d44d62642d 100644 --- a/tests/Functional/Doctrine/PartialPaginationMappedTest.php +++ b/tests/Functional/Doctrine/PartialPaginationMappedTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Doctrine; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\PartialPaginationMappedResource; use ApiPlatform\Tests\Fixtures\TestBundle\Document\PartialPaginationMappedDocument; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Doctrine/PartialPaginationTest.php b/tests/Functional/Doctrine/PartialPaginationTest.php index b0039078aec..805d00f2746 100644 --- a/tests/Functional/Doctrine/PartialPaginationTest.php +++ b/tests/Functional/Doctrine/PartialPaginationTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Doctrine; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\PartialPaginationDummy; use ApiPlatform\Tests\RecreateSchemaTrait; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Doctrine/StateOptionTest.php b/tests/Functional/Doctrine/StateOptionTest.php index b77694aa74c..1a1c76dd5f5 100644 --- a/tests/Functional/Doctrine/StateOptionTest.php +++ b/tests/Functional/Doctrine/StateOptionTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Doctrine; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6039\UserApi; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7689\Issue7689CategoryDto; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7689\Issue7689ProductDto; diff --git a/tests/Functional/DocumentationActionTest.php b/tests/Functional/DocumentationActionTest.php index 69d8ba90fde..c6205074847 100644 --- a/tests/Functional/DocumentationActionTest.php +++ b/tests/Functional/DocumentationActionTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/tests/Functional/ErrorFormatTest.php b/tests/Functional/ErrorFormatTest.php index 3958cff0e9a..2e8b10aa834 100644 --- a/tests/Functional/ErrorFormatTest.php +++ b/tests/Functional/ErrorFormatTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7287\OperationWithDefaultFormat; use ApiPlatform\Tests\SetupClassResourcesTrait; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; diff --git a/tests/Functional/ErrorTest.php b/tests/Functional/ErrorTest.php index 3ec9c5aa44c..8907c9b3710 100644 --- a/tests/Functional/ErrorTest.php +++ b/tests/Functional/ErrorTest.php @@ -14,7 +14,7 @@ namespace ApiPlatform\Tests\Functional; use ApiPlatform\State\ApiResource\Error; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\XmlWithJsonError; use ApiPlatform\Tests\SetupClassResourcesTrait; use PHPUnit\Framework\Attributes\DataProvider; diff --git a/tests/Functional/FormatTest.php b/tests/Functional/FormatTest.php index 80aab72cf95..d462573b174 100644 --- a/tests/Functional/FormatTest.php +++ b/tests/Functional/FormatTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6384\AcceptHtml; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/GenIdGlobalOptionTest.php b/tests/Functional/GenIdGlobalOptionTest.php index 729a1f9d309..f74dde595c7 100644 --- a/tests/Functional/GenIdGlobalOptionTest.php +++ b/tests/Functional/GenIdGlobalOptionTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\GenIdFalse\AggregateRating; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\GenIdFalse\GenIdDefault; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\GenIdFalse\GenIdTrue; diff --git a/tests/Functional/GraphQl/Issue3975Test.php b/tests/Functional/GraphQl/Issue3975Test.php index ae4ad1e3928..c20b586753f 100644 --- a/tests/Functional/GraphQl/Issue3975Test.php +++ b/tests/Functional/GraphQl/Issue3975Test.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\GraphQl; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue3975\ActionSimulation; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/GraphQl/SecurityTest.php b/tests/Functional/GraphQl/SecurityTest.php index 305927f1302..b49e19ce2ba 100644 --- a/tests/Functional/GraphQl/SecurityTest.php +++ b/tests/Functional/GraphQl/SecurityTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\GraphQl; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\SecuredDummy as DocumentSecuredDummy; use ApiPlatform\Tests\Fixtures\TestBundle\Document\SecuredDummyCollection as DocumentSecuredDummyCollection; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\SecuredDummy; diff --git a/tests/Functional/HALCircularReference.php b/tests/Functional/HALCircularReference.php index ffd186fbe5c..8c66c6787ff 100644 --- a/tests/Functional/HALCircularReference.php +++ b/tests/Functional/HALCircularReference.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue4358\ResourceA; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue4358\ResourceB; diff --git a/tests/Functional/HydraTest.php b/tests/Functional/HydraTest.php index 5fc068d23dc..58ee944f62b 100644 --- a/tests/Functional/HydraTest.php +++ b/tests/Functional/HydraTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\HideHydraClass; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\HideHydraOperation; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/InputOutputNameConverterTest.php b/tests/Functional/InputOutputNameConverterTest.php index 07dbde490fd..67e85258ac2 100644 --- a/tests/Functional/InputOutputNameConverterTest.php +++ b/tests/Functional/InputOutputNameConverterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\DummyDtoNameConverted; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/IsGrantedTest.php b/tests/Functional/IsGrantedTest.php index 72c1cd10412..02997411fb9 100644 --- a/tests/Functional/IsGrantedTest.php +++ b/tests/Functional/IsGrantedTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\IsGrantedTestResource; use ApiPlatform\Tests\SetupClassResourcesTrait; use Symfony\Component\Security\Core\User\InMemoryUser; diff --git a/tests/Functional/Issue7354Test.php b/tests/Functional/Issue7354Test.php index b6564db7dc9..dfd7f183369 100644 --- a/tests/Functional/Issue7354Test.php +++ b/tests/Functional/Issue7354Test.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7354\BooleanQueryParameter; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Issue7490Test.php b/tests/Functional/Issue7490Test.php index fd9e6d38a12..d42a781488b 100644 --- a/tests/Functional/Issue7490Test.php +++ b/tests/Functional/Issue7490Test.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7490\FileUploadResource; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Issues/Issue6926Test.php b/tests/Functional/Issues/Issue6926Test.php index 271a103ee97..46a3b367084 100644 --- a/tests/Functional/Issues/Issue6926Test.php +++ b/tests/Functional/Issues/Issue6926Test.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Issues; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6926\Error; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6926\ThrowsAnExceptionWithGroup; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Issues/Issue7135Test.php b/tests/Functional/Issues/Issue7135Test.php index 12927799019..b1121db6c8b 100644 --- a/tests/Functional/Issues/Issue7135Test.php +++ b/tests/Functional/Issues/Issue7135Test.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Issues; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue7135\Bar; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue7135\Foo; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Issues/Issue7349Test.php b/tests/Functional/Issues/Issue7349Test.php index 4b7ed4dc012..e90fac8d560 100644 --- a/tests/Functional/Issues/Issue7349Test.php +++ b/tests/Functional/Issues/Issue7349Test.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Issues; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Issue7349\Foo7349; use ApiPlatform\Tests\RecreateSchemaTrait; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/ItemUriTemplateTest.php b/tests/Functional/ItemUriTemplateTest.php index ac4a6ea563f..f49a5a2f96f 100644 --- a/tests/Functional/ItemUriTemplateTest.php +++ b/tests/Functional/ItemUriTemplateTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6718\Organization; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/JsonApiTest.php b/tests/Functional/JsonApiTest.php index 66d35696b97..6f4509056f7 100644 --- a/tests/Functional/JsonApiTest.php +++ b/tests/Functional/JsonApiTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\JsonApiDummy; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\JsonApiErrorTestResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\JsonApiInputResource; diff --git a/tests/Functional/JsonLdTest.php b/tests/Functional/JsonLdTest.php index d72176f5856..b3a16adf207 100644 --- a/tests/Functional/JsonLdTest.php +++ b/tests/Functional/JsonLdTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\GenIdFalse\AggregateRating; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\GenIdFalse\GenIdFalse; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\GenIdFalse\LevelFirst; diff --git a/tests/Functional/JsonSchema/JsonApiJsonSchemaTest.php b/tests/Functional/JsonSchema/JsonApiJsonSchemaTest.php index a9c3f3533af..0bf88cea92c 100644 --- a/tests/Functional/JsonSchema/JsonApiJsonSchemaTest.php +++ b/tests/Functional/JsonSchema/JsonApiJsonSchemaTest.php @@ -16,7 +16,7 @@ use ApiPlatform\JsonSchema\Schema; use ApiPlatform\JsonSchema\SchemaFactoryInterface; use ApiPlatform\Metadata\Operation\Factory\OperationMetadataFactoryInterface; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Animal; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\AnimalObservation; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6317\Issue6317; diff --git a/tests/Functional/JsonSchema/JsonLdJsonSchemaTest.php b/tests/Functional/JsonSchema/JsonLdJsonSchemaTest.php index 488441c3d16..046dbea2876 100644 --- a/tests/Functional/JsonSchema/JsonLdJsonSchemaTest.php +++ b/tests/Functional/JsonSchema/JsonLdJsonSchemaTest.php @@ -15,7 +15,7 @@ use ApiPlatform\JsonSchema\SchemaFactoryInterface; use ApiPlatform\Metadata\Operation\Factory\OperationMetadataFactoryInterface; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7426\Boat; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue5793\BagOfTests; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue6212\Nest; diff --git a/tests/Functional/JsonSchema/JsonSchemaTest.php b/tests/Functional/JsonSchema/JsonSchemaTest.php index d32ae3fec53..741bf3cf69c 100644 --- a/tests/Functional/JsonSchema/JsonSchemaTest.php +++ b/tests/Functional/JsonSchema/JsonSchemaTest.php @@ -16,8 +16,8 @@ use ApiPlatform\JsonSchema\Schema; use ApiPlatform\JsonSchema\SchemaFactoryInterface; use ApiPlatform\Metadata\Operation\Factory\OperationMetadataFactoryInterface; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; -use ApiPlatform\Symfony\Bundle\Test\Constraint\MatchesJsonSchema; +use ApiPlatform\Test\ApiTestCase; +use ApiPlatform\Test\Constraint\MatchesJsonSchema; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\AggregateRating; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\ChildAttribute; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue5452\Book; diff --git a/tests/Functional/JsonSchema/JsonSchemaWithDefaultParametersTest.php b/tests/Functional/JsonSchema/JsonSchemaWithDefaultParametersTest.php index 0fdc65a5106..690c249807a 100644 --- a/tests/Functional/JsonSchema/JsonSchemaWithDefaultParametersTest.php +++ b/tests/Functional/JsonSchema/JsonSchemaWithDefaultParametersTest.php @@ -15,7 +15,7 @@ use ApiPlatform\JsonSchema\SchemaFactoryInterface; use ApiPlatform\Metadata\Operation\Factory\OperationMetadataFactoryInterface; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue5793\BagOfTests; use ApiPlatform\Tests\Functional\DefaultParametersAppKernel; diff --git a/tests/Functional/JsonStreamerTest.php b/tests/Functional/JsonStreamerTest.php index 7966cb72a19..60e8f6ffd20 100644 --- a/tests/Functional/JsonStreamerTest.php +++ b/tests/Functional/JsonStreamerTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\AggregateRating; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Product; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\JsonStreamResource; diff --git a/tests/Functional/LinkedDataPlatformTest.php b/tests/Functional/LinkedDataPlatformTest.php index 7a05b2cfddb..6bd2740f873 100644 --- a/tests/Functional/LinkedDataPlatformTest.php +++ b/tests/Functional/LinkedDataPlatformTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\DummyGetPostDeleteOperation; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/ListenerTest.php b/tests/Functional/ListenerTest.php index 28fbd1bf38b..e36c1c2cbf6 100644 --- a/tests/Functional/ListenerTest.php +++ b/tests/Functional/ListenerTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7432\OriginalDataWithListeners; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/MappingTest.php b/tests/Functional/MappingTest.php index 5babb70fdb5..2b0fc037fb0 100644 --- a/tests/Functional/MappingTest.php +++ b/tests/Functional/MappingTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\BookStoreResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\FirstResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7563\BookDto; diff --git a/tests/Functional/MathNumberTest.php b/tests/Functional/MathNumberTest.php index 04dab45903a..03666455e88 100644 --- a/tests/Functional/MathNumberTest.php +++ b/tests/Functional/MathNumberTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\MathNumber; use ApiPlatform\Tests\SetupClassResourcesTrait; use PHPUnit\Framework\Attributes\RequiresPhp; diff --git a/tests/Functional/McpTest.php b/tests/Functional/McpTest.php index 5cff5220061..9ce3240909a 100644 --- a/tests/Functional/McpTest.php +++ b/tests/Functional/McpTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\McpResourceExample; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\McpToolAttribute; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\McpTools; diff --git a/tests/Functional/MultipleResourceEntrypointTest.php b/tests/Functional/MultipleResourceEntrypointTest.php index 0277946deee..f664f1a1834 100644 --- a/tests/Functional/MultipleResourceEntrypointTest.php +++ b/tests/Functional/MultipleResourceEntrypointTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\MultipleResourceBook; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/NestedFilterTest.php b/tests/Functional/NestedFilterTest.php index c34bb770e75..cc525589afd 100644 --- a/tests/Functional/NestedFilterTest.php +++ b/tests/Functional/NestedFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilterNestedTest\FilterCompany; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilterNestedTest\FilterDepartment; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilterNestedTest\FilterEmployee; diff --git a/tests/Functional/NestedPatchTest.php b/tests/Functional/NestedPatchTest.php index c39485e9ad5..c89719008ae 100644 --- a/tests/Functional/NestedPatchTest.php +++ b/tests/Functional/NestedPatchTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Camp; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue6225\Bar6225; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue6225\Foo6225; diff --git a/tests/Functional/NotSkipNullToOneRelationTest.php b/tests/Functional/NotSkipNullToOneRelationTest.php index c6943383d0c..e49a16172d7 100644 --- a/tests/Functional/NotSkipNullToOneRelationTest.php +++ b/tests/Functional/NotSkipNullToOneRelationTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue4372\RelatedEntity; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue4372\ToOneRelationPropertyMayBeNull; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/ObjectMapperValidationTest.php b/tests/Functional/ObjectMapperValidationTest.php index 8726a3a4476..ecfdf7f4e4e 100644 --- a/tests/Functional/ObjectMapperValidationTest.php +++ b/tests/Functional/ObjectMapperValidationTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\UniqueBookResource; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\UniqueBook; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/OpenApiTest.php b/tests/Functional/OpenApiTest.php index c15809667e2..1783a9337de 100644 --- a/tests/Functional/OpenApiTest.php +++ b/tests/Functional/OpenApiTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\ChildAttribute; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Crud; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\CrudOpenApiApiPlatformTag; diff --git a/tests/Functional/PaginationDisabledTest.php b/tests/Functional/PaginationDisabledTest.php index 3fc59db32fe..e503b99e951 100644 --- a/tests/Functional/PaginationDisabledTest.php +++ b/tests/Functional/PaginationDisabledTest.php @@ -15,7 +15,7 @@ use ApiPlatform\JsonSchema\SchemaFactoryInterface; use ApiPlatform\Metadata\Operation\Factory\OperationMetadataFactoryInterface; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\PaginationDisabledEntity; use ApiPlatform\Tests\RecreateSchemaTrait; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Parameters/BooleanFilterTest.php b/tests/Functional/Parameters/BooleanFilterTest.php index a856ea33790..f1a9ffeef41 100644 --- a/tests/Functional/Parameters/BooleanFilterTest.php +++ b/tests/Functional/Parameters/BooleanFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilteredBooleanParameter as FilteredBooleanParameterDocument; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilteredBooleanParameter; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Parameters/ComparisonFilterTest.php b/tests/Functional/Parameters/ComparisonFilterTest.php index 8caaef1e3dd..9f776e51b51 100644 --- a/tests/Functional/Parameters/ComparisonFilterTest.php +++ b/tests/Functional/Parameters/ComparisonFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Chicken as DocumentChicken; use ApiPlatform\Tests\Fixtures\TestBundle\Document\ChickenCoop as DocumentChickenCoop; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Owner as DocumentOwner; diff --git a/tests/Functional/Parameters/DateFilterTest.php b/tests/Functional/Parameters/DateFilterTest.php index 72c90d214ef..c31f903b086 100644 --- a/tests/Functional/Parameters/DateFilterTest.php +++ b/tests/Functional/Parameters/DateFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilteredDateParameter as FilteredDateParameterDocument; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilteredDateParameter; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Parameters/DoctrineTest.php b/tests/Functional/Parameters/DoctrineTest.php index 8fe301f5237..b86eaf73e94 100644 --- a/tests/Functional/Parameters/DoctrineTest.php +++ b/tests/Functional/Parameters/DoctrineTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\FilterWithStateOptions; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\FilterWithStateOptionsAndNoApiFilter; use ApiPlatform\Tests\Fixtures\TestBundle\Document\SearchFilterParameter as SearchFilterParameterDocument; diff --git a/tests/Functional/Parameters/EmbeddedPartialSearchFilterTest.php b/tests/Functional/Parameters/EmbeddedPartialSearchFilterTest.php index 54b8833a991..34aab02658f 100644 --- a/tests/Functional/Parameters/EmbeddedPartialSearchFilterTest.php +++ b/tests/Functional/Parameters/EmbeddedPartialSearchFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\PostCard as DocumentPostCard; use ApiPlatform\Tests\Fixtures\TestBundle\Document\PostCardAddress as DocumentPostCardAddress; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\PostCard; diff --git a/tests/Functional/Parameters/ExactFilterTest.php b/tests/Functional/Parameters/ExactFilterTest.php index 534163f081e..2aa34705813 100644 --- a/tests/Functional/Parameters/ExactFilterTest.php +++ b/tests/Functional/Parameters/ExactFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Chicken as DocumentChicken; use ApiPlatform\Tests\Fixtures\TestBundle\Document\ChickenCoop as DocumentChickenCoop; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Owner as DocumentOwner; diff --git a/tests/Functional/Parameters/ExistsFilterTest.php b/tests/Functional/Parameters/ExistsFilterTest.php index 122854154bf..bd07757fea6 100644 --- a/tests/Functional/Parameters/ExistsFilterTest.php +++ b/tests/Functional/Parameters/ExistsFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilteredExistsParameter as FilteredExistsParameterDocument; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilteredExistsParameter; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Parameters/FreeTextQueryFilterNestedTest.php b/tests/Functional/Parameters/FreeTextQueryFilterNestedTest.php index fa7e8f84b85..ef59b98b1e0 100644 --- a/tests/Functional/Parameters/FreeTextQueryFilterNestedTest.php +++ b/tests/Functional/Parameters/FreeTextQueryFilterNestedTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FreeTextArticle as DocumentFreeTextArticle; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FreeTextTag as DocumentFreeTextTag; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FreeTextArticle; diff --git a/tests/Functional/Parameters/FreeTextQueryFilterTest.php b/tests/Functional/Parameters/FreeTextQueryFilterTest.php index 31e051b51f6..64108162524 100644 --- a/tests/Functional/Parameters/FreeTextQueryFilterTest.php +++ b/tests/Functional/Parameters/FreeTextQueryFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Chicken as DocumentChicken; use ApiPlatform\Tests\Fixtures\TestBundle\Document\ChickenCoop as DocumentChickenCoop; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Owner as DocumentOwner; diff --git a/tests/Functional/Parameters/HydraTest.php b/tests/Functional/Parameters/HydraTest.php index f2a29361ca9..bdd1ea9a973 100644 --- a/tests/Functional/Parameters/HydraTest.php +++ b/tests/Functional/Parameters/HydraTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\WithParameter; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Parameters/IriFilterRelationsTest.php b/tests/Functional/Parameters/IriFilterRelationsTest.php index cf050a02dfe..350054bbb39 100644 --- a/tests/Functional/Parameters/IriFilterRelationsTest.php +++ b/tests/Functional/Parameters/IriFilterRelationsTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\IriFilterRelationsTest\Author; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\IriFilterRelationsTest\Biography; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\IriFilterRelationsTest\Book; diff --git a/tests/Functional/Parameters/IriFilterTest.php b/tests/Functional/Parameters/IriFilterTest.php index d91537ce0a8..e91ecb88b08 100644 --- a/tests/Functional/Parameters/IriFilterTest.php +++ b/tests/Functional/Parameters/IriFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Chicken as DocumentChicken; use ApiPlatform\Tests\Fixtures\TestBundle\Document\ChickenCoop as DocumentChickenCoop; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Chicken; diff --git a/tests/Functional/Parameters/IriProviderParameterTest.php b/tests/Functional/Parameters/IriProviderParameterTest.php index f878c43b0ee..ece9ed547ea 100644 --- a/tests/Functional/Parameters/IriProviderParameterTest.php +++ b/tests/Functional/Parameters/IriProviderParameterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\WithParameter; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Dummy; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Parameters/LinkProviderParameterTest.php b/tests/Functional/Parameters/LinkProviderParameterTest.php index 136044de8da..9608bb33f0b 100644 --- a/tests/Functional/Parameters/LinkProviderParameterTest.php +++ b/tests/Functional/Parameters/LinkProviderParameterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7469TestResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\LinkParameterProviderResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\WithParameter; diff --git a/tests/Functional/Parameters/NumericFilterTest.php b/tests/Functional/Parameters/NumericFilterTest.php index 03512ac1462..e1b6524cbf8 100644 --- a/tests/Functional/Parameters/NumericFilterTest.php +++ b/tests/Functional/Parameters/NumericFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilteredNumericParameter as FilteredNumericParameterDocument; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilteredNumericParameter; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Parameters/OrFilterTest.php b/tests/Functional/Parameters/OrFilterTest.php index cc0893e3dc6..57f56f9c253 100644 --- a/tests/Functional/Parameters/OrFilterTest.php +++ b/tests/Functional/Parameters/OrFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Chicken as DocumentChicken; use ApiPlatform\Tests\Fixtures\TestBundle\Document\ChickenCoop as DocumentChickenCoop; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Chicken; diff --git a/tests/Functional/Parameters/OrderFilterTest.php b/tests/Functional/Parameters/OrderFilterTest.php index 368ca970289..54ed88ea16d 100644 --- a/tests/Functional/Parameters/OrderFilterTest.php +++ b/tests/Functional/Parameters/OrderFilterTest.php @@ -14,7 +14,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; use ApiPlatform\Doctrine\Odm\Filter\OrderFilter; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilteredOrderParameter as FilteredOrderParameterDocument; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilteredOrderParameter; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Parameters/ParameterProviderTest.php b/tests/Functional/Parameters/ParameterProviderTest.php index 89b95914fdf..2fdb75364aa 100644 --- a/tests/Functional/Parameters/ParameterProviderTest.php +++ b/tests/Functional/Parameters/ParameterProviderTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6673\MutlipleParameterProvider; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Parameters/ParameterTest.php b/tests/Functional/Parameters/ParameterTest.php index 6a0ef794261..32dd657598a 100644 --- a/tests/Functional/Parameters/ParameterTest.php +++ b/tests/Functional/Parameters/ParameterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\TranslateValidationError; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\WithParameter; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Parameters/PartialSearchFilterTest.php b/tests/Functional/Parameters/PartialSearchFilterTest.php index 3a2bebe66da..f681d52d3e2 100644 --- a/tests/Functional/Parameters/PartialSearchFilterTest.php +++ b/tests/Functional/Parameters/PartialSearchFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Chicken as DocumentChicken; use ApiPlatform\Tests\Fixtures\TestBundle\Document\ChickenCoop as DocumentChickenCoop; use ApiPlatform\Tests\Fixtures\TestBundle\Document\Owner as DocumentOwner; diff --git a/tests/Functional/Parameters/QueryParameterStateOptionsTest.php b/tests/Functional/Parameters/QueryParameterStateOptionsTest.php index 6c2cdd384e5..bc0b34ec339 100644 --- a/tests/Functional/Parameters/QueryParameterStateOptionsTest.php +++ b/tests/Functional/Parameters/QueryParameterStateOptionsTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\AgentApi; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResourceOdm\AgentDocumentApi; use ApiPlatform\Tests\Fixtures\TestBundle\Document\AgentDocument; diff --git a/tests/Functional/Parameters/RangeFilterTest.php b/tests/Functional/Parameters/RangeFilterTest.php index 0ad31aa5c29..82a32fec6ff 100644 --- a/tests/Functional/Parameters/RangeFilterTest.php +++ b/tests/Functional/Parameters/RangeFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilteredRangeParameter as FilteredRangeParameterDocument; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\FilteredRangeParameter; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Parameters/SecurityTest.php b/tests/Functional/Parameters/SecurityTest.php index 955c9cb7a96..77345c4ff27 100644 --- a/tests/Functional/Parameters/SecurityTest.php +++ b/tests/Functional/Parameters/SecurityTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\WithSecurityParameter; use ApiPlatform\Tests\SetupClassResourcesTrait; use PHPUnit\Framework\Attributes\DataProvider; diff --git a/tests/Functional/Parameters/SortFilterTest.php b/tests/Functional/Parameters/SortFilterTest.php index fb0bad15f97..4b6bc47bd33 100644 --- a/tests/Functional/Parameters/SortFilterTest.php +++ b/tests/Functional/Parameters/SortFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilterNestedTest\FilterCompany as DocumentFilterCompany; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilterNestedTest\FilterDepartment as DocumentFilterDepartment; use ApiPlatform\Tests\Fixtures\TestBundle\Document\FilterNestedTest\FilterEmployee as DocumentFilterEmployee; diff --git a/tests/Functional/Parameters/StrictParametersTest.php b/tests/Functional/Parameters/StrictParametersTest.php index 3a973b8338c..22152665800 100644 --- a/tests/Functional/Parameters/StrictParametersTest.php +++ b/tests/Functional/Parameters/StrictParametersTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\StrictParameters; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Parameters/ValidationTest.php b/tests/Functional/Parameters/ValidationTest.php index 7c243edd679..d5067a3b6fa 100644 --- a/tests/Functional/Parameters/ValidationTest.php +++ b/tests/Functional/Parameters/ValidationTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\TranslateValidationError; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\ValidateParameterBeforeProvider; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\WithParameter; diff --git a/tests/Functional/SecurityPropertyInputDtoTest.php b/tests/Functional/SecurityPropertyInputDtoTest.php index cbbef5d9141..a62a977a468 100644 --- a/tests/Functional/SecurityPropertyInputDtoTest.php +++ b/tests/Functional/SecurityPropertyInputDtoTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\DummyDtoSecuredInput; use ApiPlatform\Tests\SetupClassResourcesTrait; use Symfony\Component\Security\Core\User\InMemoryUser; diff --git a/tests/Functional/Uuid/UuidComparisonFilterTest.php b/tests/Functional/Uuid/UuidComparisonFilterTest.php index 016d617c706..2673d6dee39 100644 --- a/tests/Functional/Uuid/UuidComparisonFilterTest.php +++ b/tests/Functional/Uuid/UuidComparisonFilterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Uuid; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Uuid\SymfonyUuidDevice; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Uuid\SymfonyUuidDeviceEndpoint; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/Uuid/UuidFilterBaseTestCase.php b/tests/Functional/Uuid/UuidFilterBaseTestCase.php index 7068423e967..8cba186b5f2 100644 --- a/tests/Functional/Uuid/UuidFilterBaseTestCase.php +++ b/tests/Functional/Uuid/UuidFilterBaseTestCase.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Uuid; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\RecreateSchemaTrait; use ApiPlatform\Tests\SetupClassResourcesTrait; use Symfony\Component\HttpFoundation\Response; diff --git a/tests/Functional/Uuid/UuidFilterWithCustomSchemaTest.php b/tests/Functional/Uuid/UuidFilterWithCustomSchemaTest.php index 3db038da67b..416feae55d5 100644 --- a/tests/Functional/Uuid/UuidFilterWithCustomSchemaTest.php +++ b/tests/Functional/Uuid/UuidFilterWithCustomSchemaTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Uuid; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Uuid\UuidFilterWithCustomSchema; use ApiPlatform\Tests\RecreateSchemaTrait; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/ValidateProcessorTest.php b/tests/Functional/ValidateProcessorTest.php index a1e0e650c88..4b32bf34cc7 100644 --- a/tests/Functional/ValidateProcessorTest.php +++ b/tests/Functional/ValidateProcessorTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\ValidateOnce; use ApiPlatform\Tests\Fixtures\TestBundle\Validator\CountableConstraintValidator; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/ValidationTest.php b/tests/Functional/ValidationTest.php index 18ba33fd123..5a0ea4b180e 100644 --- a/tests/Functional/ValidationTest.php +++ b/tests/Functional/ValidationTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue7228\ValidationGroupSequence; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\DummyWithCollectDenormalizationErrors; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\RelatedDummy; diff --git a/tests/Symfony/Bundle/DependencyInjection/Compiler/TestClientPassTest.php b/tests/Symfony/Bundle/DependencyInjection/Compiler/TestClientPassTest.php index 37284d9f824..3409af97d3a 100644 --- a/tests/Symfony/Bundle/DependencyInjection/Compiler/TestClientPassTest.php +++ b/tests/Symfony/Bundle/DependencyInjection/Compiler/TestClientPassTest.php @@ -14,7 +14,7 @@ namespace ApiPlatform\Tests\Symfony\Bundle\DependencyInjection\Compiler; use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\TestClientPass; -use ApiPlatform\Symfony\Bundle\Test\Client; +use ApiPlatform\Test\Client; use PHPUnit\Framework\TestCase; use Prophecy\Argument; use Prophecy\PhpUnit\ProphecyTrait; diff --git a/tests/Symfony/Bundle/Test/ApiTestCaseTest.php b/tests/Test/ApiTestCaseTest.php similarity index 99% rename from tests/Symfony/Bundle/Test/ApiTestCaseTest.php rename to tests/Test/ApiTestCaseTest.php index 422d1e558c6..5db045361b7 100644 --- a/tests/Symfony/Bundle/Test/ApiTestCaseTest.php +++ b/tests/Test/ApiTestCaseTest.php @@ -11,9 +11,9 @@ declare(strict_types=1); -namespace ApiPlatform\Tests\Symfony\Bundle\Test; +namespace ApiPlatform\Tests\Test; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue5921\ExceptionResource; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\OperationPriorities; use ApiPlatform\Tests\Fixtures\TestBundle\Document\DirectMercure as DirectMercureDocument; diff --git a/tests/Symfony/Bundle/Test/ClientTest.php b/tests/Test/ClientTest.php similarity index 97% rename from tests/Symfony/Bundle/Test/ClientTest.php rename to tests/Test/ClientTest.php index 9fb196f87ce..15cebe5009d 100644 --- a/tests/Symfony/Bundle/Test/ClientTest.php +++ b/tests/Test/ClientTest.php @@ -11,10 +11,10 @@ declare(strict_types=1); -namespace ApiPlatform\Tests\Symfony\Bundle\Test; +namespace ApiPlatform\Tests\Test; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; -use ApiPlatform\Symfony\Bundle\Test\Response; +use ApiPlatform\Test\ApiTestCase; +use ApiPlatform\Test\Response; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Dummy; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\RelatedDummy; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\RelatedOwnedDummy; diff --git a/tests/Symfony/Bundle/Test/Constraint/ArraySubsetTest.php b/tests/Test/Constraint/ArraySubsetTest.php similarity index 97% rename from tests/Symfony/Bundle/Test/Constraint/ArraySubsetTest.php rename to tests/Test/Constraint/ArraySubsetTest.php index f24d4e0fd5b..a7560875188 100644 --- a/tests/Symfony/Bundle/Test/Constraint/ArraySubsetTest.php +++ b/tests/Test/Constraint/ArraySubsetTest.php @@ -11,9 +11,9 @@ declare(strict_types=1); -namespace ApiPlatform\Tests\Symfony\Bundle\Test\Constraint; +namespace ApiPlatform\Tests\Test\Constraint; -use ApiPlatform\Symfony\Bundle\Test\Constraint\ArraySubset; +use ApiPlatform\Test\Constraint\ArraySubset; use ApiPlatform\Tests\Fixtures\ArrayAccessible; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\ExpectationFailedException; diff --git a/tests/Symfony/Bundle/Test/Constraint/MatchesJsonSchemaTest.php b/tests/Test/Constraint/MatchesJsonSchemaTest.php similarity index 88% rename from tests/Symfony/Bundle/Test/Constraint/MatchesJsonSchemaTest.php rename to tests/Test/Constraint/MatchesJsonSchemaTest.php index 48cb8fe3e2e..5477301b565 100644 --- a/tests/Symfony/Bundle/Test/Constraint/MatchesJsonSchemaTest.php +++ b/tests/Test/Constraint/MatchesJsonSchemaTest.php @@ -11,9 +11,9 @@ declare(strict_types=1); -namespace ApiPlatform\Tests\Symfony\Bundle\Test\Constraint; +namespace ApiPlatform\Tests\Test\Constraint; -use ApiPlatform\Symfony\Bundle\Test\Constraint\MatchesJsonSchema; +use ApiPlatform\Test\Constraint\MatchesJsonSchema; use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\TestCase; diff --git a/tests/Symfony/Bundle/Test/ResponseTest.php b/tests/Test/ResponseTest.php similarity index 98% rename from tests/Symfony/Bundle/Test/ResponseTest.php rename to tests/Test/ResponseTest.php index 4d5c674420f..9832d379241 100644 --- a/tests/Symfony/Bundle/Test/ResponseTest.php +++ b/tests/Test/ResponseTest.php @@ -11,9 +11,9 @@ declare(strict_types=1); -namespace ApiPlatform\Tests\Symfony\Bundle\Test; +namespace ApiPlatform\Tests\Test; -use ApiPlatform\Symfony\Bundle\Test\Response; +use ApiPlatform\Test\Response; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\Response as BrowserKitResponse;