Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion symfony/file-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ To test your upload with `ApiTestCase`, you can write a method as below:

namespace App\Tests;

use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Test\ApiTestCase;
use App\Entity\MediaObject;
use Hautelook\AliceBundle\PhpUnit\RefreshDatabaseTrait;
use Symfony\Component\HttpFoundation\File\UploadedFile;
Expand Down
2 changes: 1 addition & 1 deletion symfony/jwt.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ To test your authentication with `ApiTestCase`, you can write a method as below:

namespace App\Tests;

use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Test\ApiTestCase;
use App\Entity\User;
use Hautelook\AliceBundle\PhpUnit\ReloadDatabaseTrait;

Expand Down
14 changes: 7 additions & 7 deletions symfony/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Here is an example of functional tests specifying the behavior of

namespace App\Tests;

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

namespace App\Tests;

use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Test\ApiTestCase;

class BooksTest extends ApiTestCase
{
Expand All @@ -486,8 +486,8 @@ Json Web Token authentication:
// api/tests/AbstractTest.php
namespace App\Tests;

use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Symfony\Bundle\Test\Client;
use ApiPlatform\Test\ApiTestCase;
use ApiPlatform\Test\Client;
use Hautelook\AliceBundle\PhpUnit\RefreshDatabaseTrait;

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

namespace App\Tests;

use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Test\ApiTestCase;

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

namespace App\Tests;

use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Test\ApiTestCase;

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

namespace App\Tests;

use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Test\ApiTestCase;

class BooksTest extends ApiTestCase
{
Expand Down
Loading