| @@ 13-31 (lines=19) @@ | ||
| 10 | ||
| 11 | use eZ\Publish\Core\SignalSlot\Signal\LocationService\DeleteLocationSignal; |
|
| 12 | ||
| 13 | class DeleteLocationSlotTest extends AbstractPurgeForContentSlotTest implements SlotTest, PurgeForContentExpectation |
|
| 14 | { |
|
| 15 | protected static $locationIds = [45, 43]; |
|
| 16 | ||
| 17 | public static function createSignal() |
|
| 18 | { |
|
| 19 | return new DeleteLocationSignal(['contentId' => self::getContentId(), 'locationId' => 45, 'parentLocationId' => 43]); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function getSlotClass() |
|
| 23 | { |
|
| 24 | return 'eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\DeleteLocationSlot'; |
|
| 25 | } |
|
| 26 | ||
| 27 | public static function getReceivedSignalClasses() |
|
| 28 | { |
|
| 29 | return ['eZ\Publish\Core\SignalSlot\Signal\LocationService\DeleteLocationSignal']; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 13-31 (lines=19) @@ | ||
| 10 | ||
| 11 | use eZ\Publish\Core\SignalSlot\Signal\TrashService\TrashSignal; |
|
| 12 | ||
| 13 | class TrashSlotTest extends AbstractPurgeForContentSlotTest implements SlotTest, PurgeForContentExpectation |
|
| 14 | { |
|
| 15 | protected static $locationIds = [45, 43]; |
|
| 16 | ||
| 17 | public static function createSignal() |
|
| 18 | { |
|
| 19 | return new TrashSignal(['contentId' => self::getContentId(), 'locationId' => 45, 'parentLocationId' => 43]); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function getSlotClass() |
|
| 23 | { |
|
| 24 | return 'eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\TrashSlot'; |
|
| 25 | } |
|
| 26 | ||
| 27 | public static function getReceivedSignalClasses() |
|
| 28 | { |
|
| 29 | return ['eZ\Publish\Core\SignalSlot\Signal\TrashService\TrashSignal']; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||