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

TicketSidebarMenuCest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

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