Code Duplication    Length = 11-12 lines in 2 locations

src/Kunstmaan/AdminBundle/Tests/unit/Helper/AdminPanel/AdminPanelActionTest.php 1 location

@@ 11-21 (lines=11) @@
8
/**
9
 * Class AdminPanelActionTest
10
 */
11
class AdminPanelActionTest extends TestCase
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

src/Kunstmaan/AdminListBundle/Tests/unit/AdminList/ListAction/SimpleListActionTest.php 1 location

@@ 11-22 (lines=12) @@
8
/**
9
 * Class ListActionTest
10
 */
11
class SimpleListActionTest extends TestCase
12
{
13
    public function test__construct()
14
    {
15
        $object = new SimpleListAction(['http://www.domain.com/action'], 'Label', 'icon.png', 'template.html.twig');
16
17
        $this->assertEquals('http://www.domain.com/action', $object->getUrl()[0]);
18
        $this->assertEquals('icon.png', $object->getIcon());
19
        $this->assertEquals('Label', $object->getLabel());
20
        $this->assertEquals('template.html.twig', $object->getTemplate());
21
    }
22
}
23