Code Duplication    Length = 9-9 lines in 2 locations

Test/Unit/Helper/OrderTest.php 2 locations

@@ 139-147 (lines=9) @@
136
        $this->assertEquals($expected, $result);
137
    }
138
139
    public function testGetShippingMethodFalse()
140
    {
141
        $quote = $this->getMockBuilder(Quote::class)->disableOriginalConstructor()->getMock();
142
        $address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
143
        $address->method('getGroupedAllShippingRates')->willReturn([]);
144
145
        $result = $this->order->getShippingMethod($quote, $address);
146
        $this->assertFalse($result);
147
    }
148
149
    public function testSetShippingMethod()
150
    {
@@ 170-178 (lines=9) @@
167
        $this->assertEquals($expected, $result->getShippingMethod());
168
    }
169
170
    public function testSetShippingMethodException()
171
    {
172
        $quote = $this->getMockBuilder(Quote::class)->disableOriginalConstructor()->getMock();
173
        $address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
174
        $address->method('getGroupedAllShippingRates')->willReturn([]);
175
176
        $this->expectException(LocalizedException::class);
177
        $this->order->setShippingMethod($address, $quote);
178
    }
179
180
    public function testFillSingleAddress()
181
    {