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

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

Test for the lookup() method.
    public function testLookupThrowsNotFoundException()
    {
        $urlAliasService = $this->getRepository()->getURLAliasService();
        $urlAliasHandler = $this->getPersistenceMockHandler('Content\\UrlAlias\\Handler');
        $urlAliasHandler->expects($this->once())->method('lookup')->with($this->equalTo('url'))->will($this->throwException(new NotFoundException('UrlAlias', 'url')));
        $urlAliasService->lookup('url');
    }
UrlAliasTest