Code Duplication    Length = 17-22 lines in 3 locations

eZ/Publish/Core/MVC/Symfony/Cache/Tests/Http/SignalSlot/CopyContentSlotTest.php 1 location

@@ 13-29 (lines=17) @@
10
11
use eZ\Publish\Core\SignalSlot\Signal\ContentService\CopyContentSignal;
12
13
class CopyContentSlotTest extends AbstractPurgeForContentSlotTest implements SlotTest, PurgeForContentExpectation
14
{
15
    public static function createSignal()
16
    {
17
        return new CopyContentSignal(['srcContentId' => 66, 'dstContentId' => self::getContentId()]);
18
    }
19
20
    public function getSlotClass()
21
    {
22
        return 'eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\CopyContentSlot';
23
    }
24
25
    public static function getReceivedSignalClasses()
26
    {
27
        return ['eZ\Publish\Core\SignalSlot\Signal\ContentService\CopyContentSignal'];
28
    }
29
}
30

eZ/Publish/Core/MVC/Symfony/Cache/Tests/Http/SignalSlot/SwapLocationSlotTest.php 1 location

@@ 16-37 (lines=22) @@
13
/**
14
 * @todo Fixme
15
 */
16
class SwapLocationSlotTest extends AbstractPurgeForContentSlotTest implements SlotTest, PurgeForContentExpectation
17
{
18
    public function setUp()
19
    {
20
        self::markTestIncomplete('fixme');
21
    }
22
23
    public static function createSignal()
24
    {
25
        return new SwapLocationSignal(['content1Id' => self::getContentId()]);
26
    }
27
28
    public function getSlotClass()
29
    {
30
        return 'eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\SetContentStateSlot';
31
    }
32
33
    public static function getReceivedSignalClasses()
34
    {
35
        return ['eZ\Publish\Core\SignalSlot\Signal\ObjectStateService\SetContentStateSignal'];
36
    }
37
}
38

eZ/Publish/Core/MVC/Symfony/Cache/Tests/Http/SignalSlot/RecoverSlotTest.php 1 location

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