public function testLoadAllGroups()
{
$handler = $this->getObjectStateHandler();
$mapperMock = $this->getMapperMock();
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('loadObjectStateGroupListData')->with($this->equalTo(0), $this->equalTo(-1))->will($this->returnValue(array(array())));
$mapperMock->expects($this->once())->method('createObjectStateGroupListFromData')->with($this->equalTo(array(array())))->will($this->returnValue(array($this->getObjectStateGroupFixture())));
$result = $handler->loadAllGroups();
foreach ($result as $resultItem) {
$this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\ObjectState\\Group', $resultItem);
}
}