Completed
Push — master ( ae5e03...0447ee )
by Jeroen
10:35 queued 04:37
created

AdminPanelActionTest::testGetSetRole()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
dl 8
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kunstmaan\AdminBundle\Tests\Helper\AdminPanel;
4
5
use Kunstmaan\AdminBundle\Helper\AdminPanel\AdminPanelAction;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class AdminPanelActionTest
10
 */
11 View Code Duplication
class AdminPanelActionTest extends TestCase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
12
{
13
    public function testGetSetRole()
14
    {
15
        $object = new AdminPanelAction(['http://fbi.gov'], 'FBI', 'fa-user', 'some.twig');
16
        $this->assertEquals('http://fbi.gov', $object->getUrl()[0]);
17
        $this->assertEquals('FBI', $object->getLabel());
18
        $this->assertEquals('fa-user', $object->getIcon());
19
        $this->assertEquals('some.twig', $object->getTemplate());
20
    }
21
}
22