eZ\Publish\Core\Persistence\Legacy\Tests\Content\ObjectState\ObjectStateHandlerTest::testLoadGroup PHP Method

testLoadGroup() public method

public testLoadGroup ( )
    public function testLoadGroup()
    {
        $handler = $this->getObjectStateHandler();
        $mapperMock = $this->getMapperMock();
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('loadObjectStateGroupData')->with($this->equalTo(2))->will($this->returnValue(array(array())));
        $mapperMock->expects($this->once())->method('createObjectStateGroupFromData')->with($this->equalTo(array(array())))->will($this->returnValue($this->getObjectStateGroupFixture()));
        $result = $handler->loadGroup(2);
        $this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\ObjectState\\Group', $result);
    }