eZ\Publish\Core\Repository\Tests\Service\Mock\UrlAliasTest::testLoadThrowsNotFoundException PHP Method

testLoadThrowsNotFoundException() public method

Test for the load() method.
    public function testLoadThrowsNotFoundException()
    {
        $mockedService = $this->getPartlyMockedURLAliasServiceService(array('extractPath'));
        /** @var \PHPUnit_Framework_MockObject_MockObject $urlAliasHandlerMock */
        $urlAliasHandlerMock = $this->getPersistenceMock()->urlAliasHandler();
        $urlAliasHandlerMock->expects($this->once())->method('loadUrlAlias')->with(42)->will($this->throwException(new NotFoundException('UrlAlias', 42)));
        $mockedService->load(42);
    }
UrlAliasTest