eZ\Bundle\EzPublishRestBundle\Tests\RequestParser\RouterTest::testParseHref PHP Метод

testParseHref() публичный Метод

public testParseHref ( )
    public function testParseHref()
    {
        $href = '/api/test/v1/content/objects/1';
        $expectedMatchResult = array('_route' => 'ezpublish_rest_testParseHref', 'contentId' => 1);
        $this->getRouterMock()->expects($this->once())->method('matchRequest')->with($this->attributeEqualTo('pathInfo', $href))->will($this->returnValue($expectedMatchResult));
        self::assertEquals(1, $this->getRequestParser()->parseHref($href, 'contentId'));
    }