ApiPlatform\Core\Tests\Bridge\Symfony\Routing\ApiLoaderTest::testWrongMethodApiLoader PHP Method

testWrongMethodApiLoader() public method

    public function testWrongMethodApiLoader()
    {
        $resourceMetadata = new ResourceMetadata();
        $resourceMetadata = $resourceMetadata->withShortName('dummy');
        $resourceMetadata = $resourceMetadata->withItemOperations(['post' => ['method' => 'POST']]);
        $resourceMetadata = $resourceMetadata->withCollectionOperations(['get' => ['method' => 'GET']]);
        $this->getApiLoaderWithResourceMetadata($resourceMetadata)->load(null);
    }