eZ\Bundle\EzPublishRestBundle\Tests\RequestParser\RouterTest::testParseHrefAttributeNotFound PHP Method

testParseHrefAttributeNotFound() public method

    public function testParseHrefAttributeNotFound()
    {
        $href = '/api/test/v1/content/no-attribute';
        $matchResult = array('_route' => 'ezpublish_rest_testParseHrefAttributeNotFound');
        $this->getRouterMock()->expects($this->once())->method('matchRequest')->with($this->attributeEqualTo('pathInfo', $href))->will($this->returnValue($matchResult));
        self::assertEquals(1, $this->getRequestParser()->parseHref($href, 'badAttribute'));
    }