Completed
Pull Request — master (#10)
by
unknown
15:24
created

TicketSidebarMenuCest::ensureMenuIsOk()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 17
rs 9.4285
cc 1
eloc 11
nc 1
nop 1
1
<?php
2
3
namespace hipanel\modules\ticket\tests\acceptance\client;
4
5
use hipanel\tests\_support\Page\SidebarMenu;
6
use hipanel\tests\_support\Step\Acceptance\Client;
7
use yii\helpers\Url;
8
9
class TicketSidebarMenuCest
10
{
11
    public function ensureMenuIsOk(Client $I)
12
    {
13
        $I->login();
14
        $menu = new SidebarMenu($I);
15
16
        $I->amOnPage(Url::to(['/']));
17
        $menu->ensureContains('Support', [
18
            'Tickets' => '/ticket/ticket/index',
19
            'FAQ' => '/faq/faq/index',
20
        ]);
21
22
        $I->amOnPage(Url::to(['/']));
23
        $menu->ensureDoesNotContain('Support', [
24
            'Templates',
25
            'Tickets statistics',
26
        ]);
27
    }
28
}
29