Code Duplication    Length = 10-10 lines in 2 locations

tests/_support/ticket/Create.php 1 location

@@ 51-60 (lines=10) @@
48
        return $I->grabValueFrom(View::THREAD_ID_SELECTOR);
49
    }
50
51
    protected function seePreviewWorks($message)
52
    {
53
        $I = $this->tester;
54
55
        $I->click('a[href="#preview-create-thread-form"]');
56
        $I->wait(1);
57
        $I->performOn('#preview-create-thread-form', \Codeception\Util\ActionSequence::build()
58
            ->see($message)
59
        );
60
    }
61
62
    protected function seeTicketWasCreated($message, $topic)
63
    {

tests/_support/ticket/View.php 1 location

@@ 56-65 (lines=10) @@
53
        $this->seePageContainsComment($message);
54
    }
55
56
    protected function seePreviewWorks($message)
57
    {
58
        $I = $this->tester;
59
60
        $I->click('a[href="#preview-leave-comment-form"]');
61
        $I->wait(1);
62
        $I->performOn('#preview-leave-comment-form', \Codeception\Util\ActionSequence::build()
63
            ->see($message)
64
        );
65
    }
66
67
    protected function seePageContainsComment($message)
68
    {