Completed
Push — master ( de2193...addab9 )
by André
68:04 queued 44:50
created

CreateUserSlotTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 3
lcom 0
cbo 2

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createSignal() 0 6 1
A getSlotClass() 0 4 1
A getReceivedSignalClasses() 0 4 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
namespace eZ\Publish\Core\MVC\Symfony\Cache\Tests\Http\SignalSlot;
8
9
use eZ\Publish\Core\SignalSlot\Signal\UserService\CreateUserSignal;
10
11
class CreateUserSlotTest extends AbstractPurgeForContentSlotTest implements SlotTest, PurgeForContentExpectation
12
{
13
    public static function createSignal()
14
    {
15
        return new CreateUserSignal([
16
            'userId' => self::getContentId(),
17
        ]);
18
    }
19
20
    public function getSlotClass()
21
    {
22
        return 'eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\CreateUserSlot';
23
    }
24
25
    public static function getReceivedSignalClasses()
26
    {
27
        return ['eZ\Publish\Core\SignalSlot\Signal\UserService\CreateUserSignal'];
28
    }
29
}
30