ApiPlatform\Core\tests\Action\EntrypointActionTest::testGetEntrypoint PHP Méthode

testGetEntrypoint() public méthode

public testGetEntrypoint ( )
    public function testGetEntrypoint()
    {
        $resourceNameCollectionFactoryProphecy = $this->prophesize(ResourceNameCollectionFactoryInterface::class);
        $resourceNameCollectionFactoryProphecy->create()->willReturn(new ResourceNameCollection(['dummies']));
        $entrypoint = new EntrypointAction($resourceNameCollectionFactoryProphecy->reveal());
        $this->assertEquals(new Entrypoint(new ResourceNameCollection(['dummies'])), $entrypoint());
    }
EntrypointActionTest