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

TicketSidebarMenuCest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A ensureMenuIsOk() 0 14 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