eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentTypeHandlerTest::testLoadContentTypes PHP Method

testLoadContentTypes() public method

    public function testLoadContentTypes()
    {
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('loadTypesDataForGroup')->with($this->equalTo(23), $this->equalTo(0))->will($this->returnValue(array()));
        $mapperMock = $this->getMapperMock();
        $mapperMock->expects($this->once())->method('extractTypesFromRows')->with($this->equalTo(array()))->will($this->returnValue(array(new Type())));
        $handler = $this->getHandler();
        $res = $handler->loadContentTypes(23, 0);
        $this->assertEquals(array(new Type()), $res);
    }