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

serviceProvider() public method

public serviceProvider ( )
    public function serviceProvider()
    {
        $rootId = 2;
        $trashItemId = $locationId = 60;
        $trashItemContentInfo = $this->getContentInfo(59, md5('trash'));
        $trashItem = new TrashItem(array('id' => $trashItemId, 'contentInfo' => $trashItemContentInfo));
        $location = new Location(array('id' => $locationId, 'contentInfo' => $trashItemContentInfo));
        $root = new Location(array('id' => $rootId, 'contentInfo' => $this->getContentInfo(53, md5('root'))));
        return array(array('loadTrashItem', array($trashItemId), $trashItem, 0), array('trash', array($location), $trashItem, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\TrashService\\TrashSignal', array('locationId' => $locationId)), array('recover', array($trashItem, $root), $location, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\TrashService\\RecoverSignal', array('trashItemId' => $trashItemId, 'newParentLocationId' => $rootId, 'newLocationId' => $locationId)), array('emptyTrash', array(), null, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\TrashService\\EmptyTrashSignal', array()), array('deleteTrashItem', array($trashItem), null, 1, 'eZ\\Publish\\Core\\SignalSlot\\Signal\\TrashService\\DeleteTrashItemSignal', array('trashItemId' => $trashItemId)), array('findTrashItems', array(new Query()), new SearchResult(array('totalCount' => 0)), 0));
    }