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

UpdateUrlSlotTest::getSlotClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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