eZ\Publish\Core\SignalSlot\Tests\SectionServiceTest::serviceProvider PHP Method

serviceProvider() public method

public serviceProvider ( )
    public function serviceProvider()
    {
        $sectionId = 1;
        $sectionIdentifier = 'mordor';
        $sectionName = 'Mordor';
        $contentId = 42;
        $section = new Section(array('id' => $sectionId, 'identifier' => $sectionIdentifier, 'name' => $sectionName));
        $contentInfo = $this->getContentInfo($contentId, md5('Osgiliath'));
        $sectionCreateStruct = new SectionCreateStruct();
        $sectionUpdateStruct = new SectionUpdateStruct();
        return array(array('createSection', array($sectionCreateStruct), $section, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\SectionService\\CreateSectionSignal', array('sectionId' => $sectionId)), array('updateSection', array($section, $sectionUpdateStruct), $section, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\SectionService\\UpdateSectionSignal', array('sectionId' => $sectionId)), array('loadSection', array($sectionId), $section, 0), array('loadSections', array(), array($section), 0), array('loadSectionByIdentifier', array($sectionIdentifier), $section, 0), array('countAssignedContents', array($section), 42, 0), array('isSectionUsed', array($section), true, 0), array('assignSection', array($contentInfo, $section), null, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\SectionService\\AssignSectionSignal', array('contentId' => $contentId, 'sectionId' => $sectionId)), array('deleteSection', array($section), null, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\SectionService\\DeleteSectionSignal', array('sectionId' => $sectionId)), array('newSectionCreateStruct', array(), $sectionCreateStruct, 0), array('newSectionUpdateStruct', array(), $sectionUpdateStruct, 0));
    }