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

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

Test for the createGlobalUrlAlias() method.
    public function testCreateGlobalUrlAliasBehaviour()
    {
        $handlerMock = $this->getPartlyMockedHandler(array('createUrlAlias'));
        $handlerMock->expects($this->once())->method('createUrlAlias')->with($this->equalTo('module/module'), $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->createGlobalUrlAlias('module/module', 'path'));
    }
UrlAliasHandlerTest