Completed
Push — master ( a7fff6...5ea170 )
by Jeroen
18:57 queued 10s
created

unit/Helper/AdminPanel/AdminPanelActionTest.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
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