Code Duplication    Length = 9-9 lines in 2 locations

Test/Unit/Helper/OrderTest.php 2 locations

@@ 134-142 (lines=9) @@
131
        $this->assertEquals($expected, $result);
132
    }
133
134
    public function testGetShippingMethodFalse()
135
    {
136
        $quote = $this->getMockBuilder(Quote::class)->disableOriginalConstructor()->getMock();
137
        $address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
138
        $address->method('getGroupedAllShippingRates')->willReturn([]);
139
140
        $result = $this->order->getShippingMethod($quote, $address);
141
        $this->assertFalse($result);
142
    }
143
144
    public function testSetShippingMethod()
145
    {
@@ 165-173 (lines=9) @@
162
        $this->assertEquals($expected, $result->getShippingMethod());
163
    }
164
165
    public function testSetShippingMethodException()
166
    {
167
        $quote = $this->getMockBuilder(Quote::class)->disableOriginalConstructor()->getMock();
168
        $address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
169
        $address->method('getGroupedAllShippingRates')->willReturn([]);
170
171
        $this->setExpectedException(LocalizedException::class);
172
        $this->order->setShippingMethod($address, $quote);
173
    }
174
175
    public function testFillSingleAddress()
176
    {