Skip to content

Commit 3709adf

Browse files
committed
fix: namespace
1 parent 053f648 commit 3709adf

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

tests/Core/Api/FilterCollectionFactoryTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public function testCreateFilterCollectionFromLocator()
4141
$filterLocatorProphecy->has('bar')->willReturn(false)->shouldBeCalled();
4242

4343
$filterCollection = (new FilterCollectionFactory(['foo', 'bar']))->createFilterCollectionFromLocator($filterLocatorProphecy->reveal());
44-
$this->assertArrayNotHasKey('bar', $filterCollection->getArrayCopy());
44+
45+
$this->assertArrayNotHasKey('bar', $filterCollection);
4546
$this->assertTrue(isset($filterCollection['foo']));
4647
$this->assertInstanceOf(FilterInterface::class, $filterCollection['foo']);
4748
$this->assertEquals(new FilterCollection(['foo' => $filter]), $filterCollection);

tests/Hal/JsonSchema/SchemaFactoryTest.php renamed to tests/Core/Hal/JsonSchema/SchemaFactoryTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424
use ApiPlatform\Core\Metadata\Property\PropertyNameCollection;
2525
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
2626
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
27-
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Dummy;
2827
use ApiPlatform\Core\Tests\ProphecyTrait;
28+
use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Dummy;
2929
use PHPUnit\Framework\TestCase;
3030

31+
/**
32+
* @group legacy
33+
*/
3134
class SchemaFactoryTest extends TestCase
3235
{
3336
use ProphecyTrait;

0 commit comments

Comments
 (0)