Code Duplication    Length = 8-8 lines in 4 locations

Test/Unit/Block/Onepage/DebitTest.php 1 location

@@ 117-124 (lines=8) @@
114
        $this->assertFalse($result);
115
    }
116
117
    public function testGetCheckoutUrl()
118
    {
119
        $expected = 'http://testdomain.com';
120
        $this->urlBuilder->method('getUrl')->willReturn($expected);
121
122
        $result = $this->classToTest->getCheckoutUrl();
123
        $this->assertEquals($expected, $result);
124
    }
125
126
    public function testGetErrorMessage()
127
    {

Test/Unit/Block/Onepage/SuccessTest.php 1 location

@@ 122-129 (lines=8) @@
119
        $this->assertFalse($result);
120
    }
121
122
    public function testGetMandateDownloadUrl()
123
    {
124
        $expected = 'http://testdomain.com';
125
        $this->urlBuilder->method('getUrl')->willReturn($expected);
126
127
        $result = $this->classToTest->getMandateDownloadUrl();
128
        $this->assertEquals($expected, $result);
129
    }
130
131
    public function testGetInstructionNotes()
132
    {

Test/Unit/Block/Payolution/InstallmentPlanTest.php 1 location

@@ 110-117 (lines=8) @@
107
        $this->assertEquals($expected, $result);
108
    }
109
110
    public function testGetDraftDownloadLink()
111
    {
112
        $expected = 'http://testdomain.com';
113
        $this->urlBuilder->method('getUrl')->willReturn($expected);
114
115
        $result = $this->classToTest->getDraftDownloadLink(5);
116
        $this->assertEquals($expected, $result);
117
    }
118
}
119

Test/Unit/Block/Paypal/ExpressButtonTest.php 1 location

@@ 82-89 (lines=8) @@
79
        $this->assertEquals($expected, $result);
80
    }
81
82
    public function testGetPayPalExpressLink()
83
    {
84
        $expected = 'http://testdomain.com';
85
        $this->urlBuilder->method('getUrl')->willReturn($expected);
86
87
        $result = $this->classToTest->getPayPalExpressLink();
88
        $this->assertEquals($expected, $result);
89
    }
90
91
    public function testGetPayPalExpressLogoUrl()
92
    {