Completed
Push — 7.0 ( 66fc99...d11e6e )
by André
14:26
created

UpdateUrlSlotTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 2

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createSignal() 0 6 1
A getReceivedSignalClasses() 0 6 1
A getSlotClass() 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\ContentService\UpdateContentSignal;
10
use eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\UpdateUrlSlot;
11
use eZ\Publish\Core\SignalSlot\Signal\URLService\UpdateUrlSignal;
12
13
class UpdateUrlSlotTest extends AbstractPurgeAllSlotTest
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public static function createSignal()
19
    {
20
        return new UpdateUrlSignal([
21
            'urlId' => 1,
22
        ]);
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public static function getReceivedSignalClasses()
29
    {
30
        return [
31
            UpdateContentSignal::class,
32
        ];
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function getSlotClass()
39
    {
40
        return UpdateUrlSlot::class;
41
    }
42
}
43