Completed
Push — master ( 0926c2...16eb90 )
by WEBEWEB
01:52
created

NavigationActionNodeEditTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Tests\Navigation\FontAwesome;
13
14
use WBW\Bundle\CoreBundle\Navigation\FontAwesome\NavigationNodeActionEdit;
15
use WBW\Bundle\CoreBundle\Navigation\NavigationInterface;
16
use WBW\Bundle\CoreBundle\Tests\AbstractTestCase;
17
18
/**
19
 * Navigation node action "edit" test.
20
 *
21
 * @author webeweb <https://github.com/webeweb/>
22
 * @package WBW\Bundle\CoreBundle\Tests\Navigation\FontAwesome
23
 */
24
class NavigationActionNodeEditTest extends AbstractTestCase {
25
26
    /**
27
     * Tests the __construct() method.
28
     *
29
     * @return void
30
     */
31
    public function test__construct(): void {
32
33
        $obj = new NavigationNodeActionEdit("route");
34
35
        $this->assertEquals("navigation.node.action.edit", $obj->getLabel());
36
        $this->assertEquals("fa:pen", $obj->getIcon());
37
        $this->assertEquals(NavigationInterface::NAVIGATION_MATCHER_URL, $obj->getMatcher());
38
        $this->assertEquals("route", $obj->getUri());
39
    }
40
}
41