eZ\Publish\Core\Persistence\Legacy\Tests\Content\LocationHandlerTest::getPartlyMockedHandler PHP Method

getPartlyMockedHandler() protected method

Returns the handler to test with $methods mocked.
protected getPartlyMockedHandler ( array $methods ) : Handler
$methods array
return eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler
    protected function getPartlyMockedHandler(array $methods)
    {
        return $this->getMock('\\eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Handler', $methods, array($this->locationGateway = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway', array(), array(), '', false), $this->locationMapper = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Mapper', array(), array(), '', false), $this->contentHandler = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Handler', array(), array(), '', false), $this->objectStateHandler = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\ObjectState\\Handler', array(), array(), '', false), $this->treeHandler = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\TreeHandler', array(), array(), '', false)));
    }