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
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -117,7 +118,7 @@
"symfony/http-kernel": "^6.4.13 || ^7.0 || ^8.0",
"symfony/property-access": "^6.4 || ^7.0 || ^8.0",
"symfony/property-info": "^6.4 || ^7.1 || ^8.0",
"symfony/serializer": "^6.4 || ^7.0 || ^8.0",
"symfony/serializer": "^6.4.37 || ^7.4.9 || ^8.0.9",
"symfony/translation-contracts": "^3.3",
"symfony/type-info": "^7.4 || ^8.0",
"symfony/validator": "^6.4.11 || ^7.1 || ^8.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/computed-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/create-a-custom-doctrine-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/custom-pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/doctrine-entity-as-resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/doctrine-search-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/error-provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/error-resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/extend-openapi-documentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/how-to.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/http-cache-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/return-the-iri-of-your-resources-relations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/test-your-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@

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
{
use TestGuideTrait;

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');
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/validate-incoming-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
109 changes: 0 additions & 109 deletions features/filter/filter_validation.feature

This file was deleted.

28 changes: 0 additions & 28 deletions features/filter/property_filter.feature

This file was deleted.

12 changes: 0 additions & 12 deletions features/http_cache/headers.feature

This file was deleted.

Loading