File tree 4 files changed +6
-5
lines changed
Core/Bridge/Symfony/Bundle/Resources/config
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 57
57
58
58
<!-- JSON Schema -->
59
59
60
- <service id =" api_platform.hal.json_schema.schema_factory" class =" ApiPlatform\Core\ Hal\JsonSchema\SchemaFactory" decorates =" api_platform.json_schema.schema_factory" >
60
+ <service id =" api_platform.hal.json_schema.schema_factory" class =" ApiPlatform\Hal\JsonSchema\SchemaFactory" decorates =" api_platform.json_schema.schema_factory" >
61
61
<argument type =" service" id =" api_platform.hal.json_schema.schema_factory.inner" />
62
62
</service >
63
63
</services >
Original file line number Diff line number Diff line change 11
11
12
12
declare (strict_types=1 );
13
13
14
- namespace ApiPlatform \Core \ Hal \JsonSchema ;
14
+ namespace ApiPlatform \Hal \JsonSchema ;
15
15
16
16
use ApiPlatform \Core \JsonSchema \Schema ;
17
17
use ApiPlatform \Core \JsonSchema \SchemaFactoryInterface ;
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ public function testCreateFilterCollectionFromLocator()
41
41
$ filterLocatorProphecy ->has ('bar ' )->willReturn (false )->shouldBeCalled ();
42
42
43
43
$ filterCollection = (new FilterCollectionFactory (['foo ' , 'bar ' ]))->createFilterCollectionFromLocator ($ filterLocatorProphecy ->reveal ());
44
- $ this ->assertArrayNotHasKey ('bar ' , $ filterCollection ->getArrayCopy ());
44
+
45
+ $ this ->assertArrayNotHasKey ('bar ' , $ filterCollection );
45
46
$ this ->assertTrue (isset ($ filterCollection ['foo ' ]));
46
47
$ this ->assertInstanceOf (FilterInterface::class, $ filterCollection ['foo ' ]);
47
48
$ this ->assertEquals (new FilterCollection (['foo ' => $ filter ]), $ filterCollection );
Original file line number Diff line number Diff line change 14
14
namespace ApiPlatform \Core \Tests \Hal \JsonSchema ;
15
15
16
16
use ApiPlatform \Core \Api \OperationType ;
17
- use ApiPlatform \Core \Hal \JsonSchema \SchemaFactory ;
18
17
use ApiPlatform \Core \Hydra \JsonSchema \SchemaFactory as HydraSchemaFactory ;
19
18
use ApiPlatform \Core \JsonSchema \Schema ;
20
19
use ApiPlatform \Core \JsonSchema \SchemaFactory as BaseSchemaFactory ;
24
23
use ApiPlatform \Core \Metadata \Property \PropertyNameCollection ;
25
24
use ApiPlatform \Core \Metadata \Resource \Factory \ResourceMetadataFactoryInterface ;
26
25
use ApiPlatform \Core \Metadata \Resource \ResourceMetadata ;
27
- use ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \Dummy ;
28
26
use ApiPlatform \Core \Tests \ProphecyTrait ;
27
+ use ApiPlatform \Hal \JsonSchema \SchemaFactory ;
28
+ use ApiPlatform \Tests \Fixtures \TestBundle \Entity \Dummy ;
29
29
use PHPUnit \Framework \TestCase ;
30
30
31
31
class SchemaFactoryTest extends TestCase
You can’t perform that action at this time.
0 commit comments