Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function testGetAndSetDashboard() : void |
||
30 | { |
||
31 | /* setup */ |
||
32 | |||
33 | $module = new Module\Metadata($this->_registry, $this->_request, $this->_language, $this->_config); |
||
34 | $module->init( |
||
35 | [ |
||
36 | 'name' => 'Test Dummy', |
||
37 | 'alias' => 'TestDummy' |
||
38 | ]); |
||
39 | $module->setDashboard('Test Dummy', 2); |
||
40 | |||
41 | /* expect and actual */ |
||
42 | |||
43 | $expectArray = |
||
44 | [ |
||
45 | 'Test Dummy' => |
||
46 | [ |
||
47 | [ |
||
48 | 'column' => 2, |
||
49 | 'content' => 'Test Dummy' |
||
50 | ] |
||
51 | ] |
||
52 | ]; |
||
53 | $actualArray = $module->getDashboardArray(); |
||
54 | |||
55 | /* compare */ |
||
56 | |||
57 | $this->assertEquals($expectArray, $actualArray); |
||
58 | } |
||
59 | |||
105 |