Completed
Push — master ( e7bbff...d995c3 )
by Dmitry
54s
created

HostingSidebarMenuCest::ensureMenuIsOk()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 14
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 14
loc 14
rs 9.4285
cc 1
eloc 11
nc 1
nop 1
1
<?php
2
3
namespace hipanel\modules\hosting\tests\acceptance\admin;
4
5
use hipanel\tests\_support\Page\SidebarMenu;
6
use hipanel\tests\_support\Step\Acceptance\Admin;
7
8 View Code Duplication
class HostingSidebarMenuCest
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
    public function ensureMenuIsOk(Admin $I)
11
    {
12
        (new SidebarMenu($I))->ensureContains('Hosting',[
13
            'Accounts' => '@account/index',
14
            'Databases' => '@db/index',
15
            'Domains' => '@hdomain/index',
16
            'Mailboxes' => '@mail/index',
17
            'Backups' => '@backuping/index',
18
            'Crons' => '@crontab/index',
19
            'IP addresses' => '@ip/index',
20
            'Services' => '@service/index',
21
            'Requests' => '@request/index',
22
        ]);
23
    }
24
}
25