Code Duplication    Length = 22-22 lines in 2 locations

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

@@ 13-34 (lines=22) @@
10
11
use eZ\Publish\Core\SignalSlot\Signal\UserService\AssignUserToUserGroupSignal;
12
13
class AssignUserToUserGroupSlotTest extends AbstractContentSlotTest
14
{
15
    public function createSignal()
16
    {
17
        return new AssignUserToUserGroupSignal(['userId' => $this->contentId, 'userGroupId' => 99]);
18
    }
19
20
    public function generateTags()
21
    {
22
        return ['content-' . $this->contentId, 'content-99'];
23
    }
24
25
    public function getSlotClass()
26
    {
27
        return 'eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\AssignUserToUserGroupSlot';
28
    }
29
30
    public function getReceivedSignalClasses()
31
    {
32
        return ['eZ\Publish\Core\SignalSlot\Signal\UserService\AssignUserToUserGroupSignal'];
33
    }
34
}
35

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

@@ 13-34 (lines=22) @@
10
11
use eZ\Publish\Core\SignalSlot\Signal\UserService\UnAssignUserFromUserGroupSignal;
12
13
class UnassignUserFromUserGroupSlotTest extends AbstractContentSlotTest
14
{
15
    public function createSignal()
16
    {
17
        return new UnAssignUserFromUserGroupSignal(['userId' => $this->contentId, 'userGroupId' => 99]);
18
    }
19
20
    public function generateTags()
21
    {
22
        return ['content-' . $this->contentId, 'content-99'];
23
    }
24
25
    public function getSlotClass()
26
    {
27
        return 'eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\UnassignUserFromUserGroupSlot';
28
    }
29
30
    public function getReceivedSignalClasses()
31
    {
32
        return ['eZ\Publish\Core\SignalSlot\Signal\UserService\UnAssignUserFromUserGroupSignal'];
33
    }
34
}
35