| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function ensureContains(string $rootMenuName, array $items): void |
||
| 25 | { |
||
| 26 | $I = $this->tester; |
||
| 27 | |||
| 28 | $I->click($rootMenuName, '.sidebar-menu'); |
||
| 29 | $I->waitForElement('.menu-open'); |
||
| 30 | foreach ($items as $name => $url) { |
||
| 31 | $I->see($name, '.menu-open'); |
||
| 32 | $I->seeElement(['css' => '.menu-open a[href~="' . Url::to($url) . '"]']); |
||
| 33 | } |
||
| 34 | $I->click($rootMenuName, '.sidebar-menu'); |
||
| 35 | } |
||
| 36 | |||
| 53 |