eZ\Publish\Core\Persistence\Legacy\Tests\Content\Language\LanguageHandlerTest::testLoadAll PHP Метод

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

public testLoadAll ( )
    public function testLoadAll()
    {
        $handler = $this->getLanguageHandler();
        $mapperMock = $this->getMapperMock();
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('loadAllLanguagesData')->will($this->returnValue(array()));
        $mapperMock->expects($this->once())->method('extractLanguagesFromRows')->with($this->equalTo(array()))->will($this->returnValue(array(new Language())));
        $result = $handler->loadAll();
        $this->assertInternalType('array', $result);
    }