Code Duplication    Length = 8-9 lines in 9 locations

tests/acceptance/client/AccountsCest.php 1 location

@@ 21-28 (lines=8) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@account'));
25
        $I->see('Accounts', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeBulkSearchBox();
28
    }
29
30
    private function ensureICanSeeAdvancedSearchBox(Client $I)
31
    {

tests/acceptance/client/BackupsCest.php 1 location

@@ 21-28 (lines=8) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@backuping'));
25
        $I->see('Backups', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeBulkSearchBox();
28
    }
29
30
    private function ensureICanSeeAdvancedSearchBox(Client $I)
31
    {

tests/acceptance/client/CronsCest.php 1 location

@@ 21-28 (lines=8) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@crontab'));
25
        $I->see('Crons', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeBulkSearchBox();
28
    }
29
30
    private function ensureICanSeeAdvancedSearchBox(Client $I)
31
    {

tests/acceptance/client/DatabasesCest.php 1 location

@@ 21-28 (lines=8) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@db'));
25
        $I->see('Databases', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeBulkSearchBox();
28
    }
29
30
    private function ensureICanSeeAdvancedSearchBox(Client $I)
31
    {

tests/acceptance/client/DomainsCest.php 1 location

@@ 21-29 (lines=9) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@hdomain'));
25
        $I->see('Domains', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeLegendBox($I);
28
        $this->ensureICanSeeBulkSearchBox();
29
    }
30
31
    private function ensureICanSeeAdvancedSearchBox(Client $I)
32
    {

tests/acceptance/client/IPAddressesCest.php 1 location

@@ 21-29 (lines=9) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@ip'));
25
        $I->see('IP addresses', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeLegendBox($I);
28
        $this->ensureICanSeeBulkSearchBox();
29
    }
30
31
    private function ensureICanSeeAdvancedSearchBox(Client $I)
32
    {

tests/acceptance/client/MailboxesCest.php 1 location

@@ 21-29 (lines=9) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@mail'));
25
        $I->see('Mailboxes', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeLegendBox($I);
28
        $this->ensureICanSeeBulkSearchBox();
29
    }
30
31
    private function ensureICanSeeAdvancedSearchBox(Client $I)
32
    {

tests/acceptance/client/RequestsCest.php 1 location

@@ 21-29 (lines=9) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@request'));
25
        $I->see('Requests', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeLegendBox($I);
28
        $this->ensureICanSeeBulkSearchBox();
29
    }
30
31
    private function ensureICanSeeAdvancedSearchBox(Client $I)
32
    {

tests/acceptance/client/ServicesCest.php 1 location

@@ 21-28 (lines=8) @@
18
        $this->index = new IndexPage($I);
19
    }
20
21
    public function ensureIndexPageWorks(Client $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('@service'));
25
        $I->see('Services', 'h1');
26
        $this->ensureICanSeeAdvancedSearchBox($I);
27
        $this->ensureICanSeeBulkSearchBox();
28
    }
29
30
    private function ensureICanSeeAdvancedSearchBox(Client $I)
31
    {