Skip to content

Commit 0eccf87

Browse files
committed
fix: bad namespace on fixture
1 parent ee6b6c3 commit 0eccf87

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

tests/Api/IdentifiersExtractorTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,4 @@ public function testGetIdentifiersFromItemWithId()
8989

9090
$this->assertEquals(['id' => '1'], $identifiersExtractor->getIdentifiersFromItem($item, 'operation', $context));
9191
}
92-
93-
public function testDefaultIdentifierId(): void
94-
{
95-
$propertyNameCollectionFactoryProphecy = $this->prophesize(PropertyNameCollectionFactoryInterface::class);
96-
$propertyNameCollectionFactoryProphecy->create(Dummy::class)->willReturn(new PropertyNameCollection(['id']));
97-
$propertyMetadataFactoryProphecy = $this->prophesize(PropertyMetadataFactoryInterface::class);
98-
$propertyMetadataFactoryProphecy->create(Dummy::class, 'id')->willReturn(new PropertyMetadata());
99-
$resourceClassResolverProphecy = $this->prophesize(ResourceClassResolverInterface::class);
100-
$identifiersExtractor = new IdentifiersExtractor($propertyNameCollectionFactoryProphecy->reveal(), $propertyMetadataFactoryProphecy->reveal(), null, $resourceClassResolverProphecy->reveal());
101-
102-
$this->assertSame(['id'], $identifiersExtractor->getIdentifiersFromResourceClass(Dummy::class));
103-
}
10492
}

tests/Fixtures/TestBundle/Entity/DummyCarInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity;
14+
namespace ApiPlatform\Tests\Fixtures\TestBundle\Entity;
1515

1616
use Doctrine\ORM\Mapping as ORM;
1717

0 commit comments

Comments
 (0)