Code Duplication    Length = 8-9 lines in 2 locations

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

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

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($I);
31
        $this->ensureICanSeeBulkBillSearchBox();
32
    }
33
34
    private function ensureICanSeeAdvancedSearchBox(Manager $I)
35
    {