eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAliasHandlerTest::testCreateCustomUrlAliasBehaviour PHP Метод

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

Test for the createCustomUrlAlias() method.
    public function testCreateCustomUrlAliasBehaviour()
    {
        $handlerMock = $this->getPartlyMockedHandler(array('createUrlAlias'));
        $handlerMock->expects($this->once())->method('createUrlAlias')->with($this->equalTo('eznode:1'), $this->equalTo('path'), $this->equalTo(false), $this->equalTo(null), $this->equalTo(false))->will($this->returnValue(new UrlAlias()));
        $this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\UrlAlias', $handlerMock->createCustomUrlAlias(1, 'path'));
    }
UrlAliasHandlerTest