eZ\Publish\Core\Persistence\Legacy\Tests\Content\Language\CachingLanguageHandlerTest::testLoadFailure PHP Method

testLoadFailure() public method

public testLoadFailure ( )
    public function testLoadFailure()
    {
        $this->expectCacheInitialize();
        $handler = $this->getLanguageHandler();
        $cacheMock = $this->getLanguageCacheMock();
        $cacheMock->expects($this->once())->method('getById')->with($this->equalTo(2))->will($this->throwException(new NotFoundException('Language', 2)));
        $result = $handler->load(2);
    }