eZ\Publish\Core\REST\Server\Tests\Input\Parser\SectionInputTest::getSectionServiceMock PHP 메소드

getSectionServiceMock() 보호된 메소드

Get the section service mock object.
protected getSectionServiceMock ( ) : eZ\Publish\API\Repository\SectionService
리턴 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;
    }