-
-
Notifications
You must be signed in to change notification settings - Fork 961
Expand file tree
/
Copy pathArrayDtoTest.php
More file actions
39 lines (31 loc) · 1.02 KB
/
ArrayDtoTest.php
File metadata and controls
39 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Tests\Functional;
use ApiPlatform\Test\ApiTestCase;
use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6211\ArrayPropertyDtoOperation;
use ApiPlatform\Tests\SetupClassResourcesTrait;
final class ArrayDtoTest extends ApiTestCase
{
use SetupClassResourcesTrait;
protected static ?bool $alwaysBootKernel = false;
/**
* @return class-string[]
*/
public static function getResources(): array
{
return [ArrayPropertyDtoOperation::class];
}
public function testWithGroupFilter(): void
{
$response = self::createClient()->request('GET', '/array_property_dto_operations');
$this->assertArraySubset(['name' => 'test', 'greetings' => [['name' => 'test2']]], $response->toArray());
}
}