| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class MenuTest extends TestCase |
||
| 10 | { |
||
| 11 | private Menu $testMenu; |
||
| 12 | |||
| 13 | protected function setUp() : void |
||
| 14 | { |
||
| 15 | parent::setUp(); |
||
| 16 | $this->testMenu = new TestMenu(); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function test_menu_returns_filled_array() |
||
| 20 | { |
||
| 21 | $this->assertIsArray(call_user_func($this->testMenu)); |
||
| 22 | $this->assertNotEmpty(call_user_func($this->testMenu)); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function test_handle_gets_created_correctly() |
||
| 26 | { |
||
| 27 | $this->assertSame($this->testMenu->handle, 'test_menu'); |
||
| 28 | } |
||
| 31 |