Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function ensureDoesNotContain($rootMenuName, $items = null) |
||
23 | { |
||
24 | $I = $this->tester; |
||
25 | |||
26 | $I->amOnPage(Url::to(['/'])); |
||
27 | if ($items === null) { |
||
28 | $I->dontSee($rootMenuName); |
||
29 | } else { |
||
30 | $I->click($rootMenuName, '.sidebar-menu'); |
||
31 | $I->waitForElement('.menu-open'); |
||
32 | foreach ($items as $name) { |
||
33 | $I->dontSee($name, '.menu-open'); |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |