eZ\Publish\Core\Repository\Tests\Service\Mock\UrlAliasTest::testLoadThrowsNotFoundExceptionPath PHP Метод

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

Test for the load() method.
    public function testLoadThrowsNotFoundExceptionPath()
    {
        $spiUrlAlias = $this->getSpiUrlAlias();
        $urlAliasService = $this->getRepository()->getURLAliasService();
        $configuration = array('prioritizedLanguageList' => array('fre-FR'), 'showAllTranslations' => false);
        $this->setConfiguration($urlAliasService, $configuration);
        $urlAliasHandlerMock = $this->getPersistenceMockHandler('Content\\UrlAlias\\Handler');
        $urlAliasHandlerMock->expects($this->once())->method('loadUrlAlias')->with(42)->will($this->returnValue($spiUrlAlias));
        $urlAliasService->load(42);
    }
UrlAliasTest