Completed
Push — master ( 6b69c8...542406 )
by Dmitry
05:05
created

TicketSidebarMenuCest::ensureMenuIsOk()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 9.4285
cc 1
eloc 8
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
8
class TicketSidebarMenuCest
9
{
10
    public function ensureMenuIsOk(Client $I)
11
    {
12
        $menu = new SidebarMenu($I);
13
14
        $menu->ensureContains('Support', [
15
            'Tickets' => '@ticket/index',
16
            'FAQ' => '/faq/faq/index',
17
        ]);
18
19
        $menu->ensureDoesNotContain('Support', [
20
            'Templates',
21
            'Tickets statistics',
22
        ]);
23
    }
24
}
25