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

testLoadGroupByIdentifier() public method

    public function testLoadGroupByIdentifier()
    {
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('loadGroupDataByIdentifier')->with($this->equalTo('content'))->will($this->returnValue(array()));
        $mapperMock = $this->getMapperMock();
        $mapperMock->expects($this->once())->method('extractGroupsFromRows')->with($this->equalTo(array()))->will($this->returnValue(array(new Group())));
        $handler = $this->getHandler();
        $res = $handler->loadGroupByIdentifier('content');
        $this->assertEquals(new Group(), $res);
    }