Skip to content

Commit 9971f4e

Browse files
committed
feat: extract ApiTestCase in its own api-platform/test package
1 parent 8dc8c8d commit 9971f4e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

symfony/file-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ To test your upload with `ApiTestCase`, you can write a method as below:
368368

369369
namespace App\Tests;
370370

371-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
371+
use ApiPlatform\Test\ApiTestCase;
372372
use App\Entity\MediaObject;
373373
use Hautelook\AliceBundle\PhpUnit\RefreshDatabaseTrait;
374374
use Symfony\Component\HttpFoundation\File\UploadedFile;

symfony/jwt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ To test your authentication with `ApiTestCase`, you can write a method as below:
256256
257257
namespace App\Tests;
258258
259-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
259+
use ApiPlatform\Test\ApiTestCase;
260260
use App\Entity\User;
261261
use Hautelook\AliceBundle\PhpUnit\ReloadDatabaseTrait;
262262

symfony/testing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Here is an example of functional tests specifying the behavior of
206206

207207
namespace App\Tests;
208208

209-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
209+
use ApiPlatform\Test\ApiTestCase;
210210
use App\Entity\Book;
211211
use App\Factory\BookFactory;
212212
use Zenstruck\Foundry\Test\Factories;
@@ -461,7 +461,7 @@ To use the testing client, your test class must extend the `ApiTestCase` class:
461461

462462
namespace App\Tests;
463463

464-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
464+
use ApiPlatform\Test\ApiTestCase;
465465

466466
class BooksTest extends ApiTestCase
467467
{
@@ -486,8 +486,8 @@ Json Web Token authentication:
486486
// api/tests/AbstractTest.php
487487
namespace App\Tests;
488488

489-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
490-
use ApiPlatform\Symfony\Bundle\Test\Client;
489+
use ApiPlatform\Test\ApiTestCase;
490+
use ApiPlatform\Test\Client;
491491
use Hautelook\AliceBundle\PhpUnit\RefreshDatabaseTrait;
492492

493493
abstract class AbstractTest extends ApiTestCase
@@ -571,7 +571,7 @@ Platform provides convenient PHPUnit assertions dedicated to API testing:
571571

572572
namespace App\Tests;
573573

574-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
574+
use ApiPlatform\Test\ApiTestCase;
575575

576576
class MyTest extends ApiTestCase
577577
{
@@ -608,7 +608,7 @@ There is also a method to find the IRI matching a given resource and some criter
608608

609609
namespace App\Tests;
610610

611-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
611+
use ApiPlatform\Test\ApiTestCase;
612612

613613
class BooksTest extends ApiTestCase
614614
{
@@ -633,7 +633,7 @@ documents...) can be used out of the box with the API Platform test client:
633633

634634
namespace App\Tests;
635635

636-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
636+
use ApiPlatform\Test\ApiTestCase;
637637

638638
class BooksTest extends ApiTestCase
639639
{

0 commit comments

Comments
 (0)