Code Duplication    Length = 9-9 lines in 2 locations

tests/_support/Page/ticket/Index.php 2 locations

@@ 43-51 (lines=9) @@
40
        return $this;
41
    }
42
43
    public function hasLinkToTicket($id)
44
    {
45
        $I = $this->tester;
46
47
        $I->amOnPage(Url::to(['@ticket']));
48
        $I->seeElement('tr', ['data-key' => $id]);
49
50
        return $this;
51
    }
52
53
    public function ensureTicketClosed($id)
54
    {
@@ 53-61 (lines=9) @@
50
        return $this;
51
    }
52
53
    public function ensureTicketClosed($id)
54
    {
55
        $I = $this->tester;
56
57
        $I->amOnPage(Url::to(['@ticket']));
58
        $I->seeElement("//tr[@data-key='$id']/td/span/span[contains(text(), 'Closed')]");
59
60
        return $this;
61
    }
62
}
63