Code Duplication    Length = 8-9 lines in 2 locations

tests/acceptance/module/finance/manager/PriceCest.php 1 location

@@ 37-44 (lines=8) @@
34
        $this->ensureIHaveTestTemplate($I);
35
    }
36
37
    public function ensureIndexPageWorks(Manager $I)
38
    {
39
        $I->login();
40
        $I->needPage(Url::to('@price'));
41
        $I->see('Price', 'h1');
42
        $this->ensureICanSeeAdvancedSearchBox();
43
        $this->ensureICanSeeBulkBillSearchBox();
44
    }
45
46
    private function ensureICanSeeAdvancedSearchBox()
47
    {

tests/acceptance/module/finance/manager/TariffPlansCest.php 1 location

@@ 24-32 (lines=9) @@
21
        $this->index = new IndexPage($I);
22
    }
23
24
    public function ensureIndexPageWorks(Manager $I)
25
    {
26
        $I->login();
27
        $I->needPage(Url::to('@plan'));
28
        $I->see('Tariff plans', 'h1');
29
        $I->seeLink('Create', Url::to('@plan/create'));
30
        $this->ensureICanSeeAdvancedSearchBox();
31
        $this->ensureICanSeeBulkBillSearchBox();
32
    }
33
34
    private function ensureICanSeeAdvancedSearchBox()
35
    {