| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function ensureDoesNotContain(string $rootMenuName, array $items = null): void |
||
| 38 | { |
||
| 39 | $I = $this->tester; |
||
| 40 | |||
| 41 | if ($items === null) { |
||
| 42 | $I->dontSee($rootMenuName); |
||
| 43 | } else { |
||
| 44 | $I->click($rootMenuName, '.sidebar-menu'); |
||
| 45 | $I->waitForElement('.menu-open'); |
||
| 46 | foreach ($items as $name) { |
||
| 47 | $I->dontSee($name, '.menu-open'); |
||
| 48 | } |
||
| 49 | $I->click($rootMenuName, '.sidebar-menu'); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |