Code Duplication    Length = 7-7 lines in 3 locations

Test/Unit/Block/Onepage/ReviewTest.php 2 locations

@@ 166-172 (lines=7) @@
163
        $this->assertEquals($expected, $result);
164
    }
165
166
    public function testGetCarrierName()
167
    {
168
        $expected = 'carrier';
169
        $this->scopeConfig->method('getValue')->willReturn($expected);
170
        $result = $this->classToTest->getCarrierName('test');
171
        $this->assertEquals($expected, $result);
172
    }
173
174
    public function testGetCarrierNameNoCarrier()
175
    {
@@ 174-180 (lines=7) @@
171
        $this->assertEquals($expected, $result);
172
    }
173
174
    public function testGetCarrierNameNoCarrier()
175
    {
176
        $expected = 'test';
177
        $this->scopeConfig->method('getValue')->willReturn(false);
178
        $result = $this->classToTest->getCarrierName($expected);
179
        $this->assertEquals($expected, $result);
180
    }
181
182
    public function testRenderShippingRateValue()
183
    {

Test/Unit/Model/Methods/BaseMethodTest.php 1 location

@@ 101-107 (lines=7) @@
98
        ]);
99
    }
100
101
    public function testGetInstructions()
102
    {
103
        $expected = 'instruction text';
104
        $this->scopeConfig->method('getValue')->willReturn($expected);
105
        $result = $this->classToTest->getInstructions();
106
        $this->assertEquals($expected, $result);
107
    }
108
109
    public function testGetConfigPaymentAction()
110
    {