Completed
Push — refonte ( 7173e3...bffa4c )
by Arnaud
02:33
created

ActionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LAG\AdminBundle\Tests\Admin;
4
5
use LAG\AdminBundle\Admin\Action;
6
use LAG\AdminBundle\Configuration\ActionConfiguration;
7
use LAG\AdminBundle\Tests\AdminTestBase;
8
9
class ActionTest extends AdminTestBase
10
{
11
    public function testGetters()
12
    {
13
        $configuration = $this->getMockWithoutConstructor(ActionConfiguration::class);
14
        $action = new Action('test', $configuration);
15
16
        $this->assertEquals('test', $action->getName());
17
        $this->assertEquals($configuration, $action->getConfiguration());
18
    }
19
}
20