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

testLoadFailure() public method

public testLoadFailure ( )
    public function testLoadFailure()
    {
        $handler = $this->getLanguageHandler();
        $mapperMock = $this->getMapperMock();
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('loadLanguageData')->with($this->equalTo(2))->will($this->returnValue(array()));
        $mapperMock->expects($this->once())->method('extractLanguagesFromRows')->with($this->equalTo(array()))->will($this->returnValue(array()));
        $result = $handler->load(2);
    }