eZ\Publish\Core\REST\Server\Tests\Input\Parser\SectionInputTest::getSectionServiceMock PHP Method

getSectionServiceMock() protected method

Get the section service mock object.
protected getSectionServiceMock ( ) : eZ\Publish\API\Repository\SectionService
return eZ\Publish\API\Repository\SectionService
    protected function getSectionServiceMock()
    {
        $sectionServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\SectionService', array(), array(), '', false);
        $sectionServiceMock->expects($this->any())->method('newSectionCreateStruct')->will($this->returnValue(new SectionCreateStruct()));
        return $sectionServiceMock;
    }