Skip to content

Commit 918239d

Browse files
committed
feat: extract ApiTestCase in its own api-platform/test package
1 parent 61c6dee commit 918239d

File tree

114 files changed

+207
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+207
-124
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"api-platform/serializer": "self.version",
105105
"api-platform/state": "self.version",
106106
"api-platform/symfony": "self.version",
107+
"api-platform/test": "self.version",
107108
"api-platform/validator": "self.version"
108109
},
109110
"require": {

docs/guides/computed-field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public function up(Schema $schema): void
264264

265265
namespace App\Tests {
266266
use ApiPlatform\Playground\Test\TestGuideTrait;
267-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
267+
use ApiPlatform\Test\ApiTestCase;
268268

269269
final class ComputedFieldTest extends ApiTestCase
270270
{

docs/guides/create-a-custom-doctrine-filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function up(Schema $schema): void
120120

121121
namespace App\Tests {
122122
use ApiPlatform\Playground\Test\TestGuideTrait;
123-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
123+
use ApiPlatform\Test\ApiTestCase;
124124
use App\Entity\Book;
125125

126126
final class BookTest extends ApiTestCase

docs/guides/custom-pagination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function load(ObjectManager $manager): void
147147

148148
namespace App\Tests {
149149
use ApiPlatform\Playground\Test\TestGuideTrait;
150-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
150+
use ApiPlatform\Test\ApiTestCase;
151151
use App\Entity\Book;
152152

153153
final class BookTest extends ApiTestCase

docs/guides/doctrine-entity-as-resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function load(ObjectManager $manager): void
8989

9090
namespace App\Tests {
9191
use ApiPlatform\Playground\Test\TestGuideTrait;
92-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
92+
use ApiPlatform\Test\ApiTestCase;
9393

9494
final class BookTest extends ApiTestCase
9595
{

docs/guides/doctrine-search-filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function load(ObjectManager $manager): void
104104

105105
namespace App\Tests {
106106
use ApiPlatform\Playground\Test\TestGuideTrait;
107-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
107+
use ApiPlatform\Test\ApiTestCase;
108108
use App\Entity\Book;
109109

110110
final class BookTest extends ApiTestCase

docs/guides/error-provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function configure(ContainerConfigurator $configurator): void
8484

8585
namespace App\Tests {
8686
use ApiPlatform\Playground\Test\TestGuideTrait;
87-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
87+
use ApiPlatform\Test\ApiTestCase;
8888

8989
final class BookTest extends ApiTestCase
9090
{

docs/guides/error-resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static function provide(Operation $operation, array $uriVariables = [], a
7171

7272
namespace App\Tests {
7373
use ApiPlatform\Playground\Test\TestGuideTrait;
74-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
74+
use ApiPlatform\Test\ApiTestCase;
7575

7676
final class BookTest extends ApiTestCase
7777
{

docs/guides/extend-openapi-documentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Book
4848

4949
namespace App\Tests {
5050
use ApiPlatform\Playground\Test\TestGuideTrait;
51-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
51+
use ApiPlatform\Test\ApiTestCase;
5252

5353
final class BookTest extends ApiTestCase
5454
{

docs/guides/how-to.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function request(): Request
124124

125125
namespace App\Tests {
126126
use ApiPlatform\Playground\Test\TestGuideTrait;
127-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
127+
use ApiPlatform\Test\ApiTestCase;
128128
use App\Entity\Book;
129129

130130
final class BookTest extends ApiTestCase

0 commit comments

Comments
 (0)