Code Duplication    Length = 12-14 lines in 2 locations

tests/BasketTest.php 2 locations

@@ 222-233 (lines=12) @@
219
        $this->assertEquals(130, $this->basket->total(false));
220
    }
221
222
    public function testFind(): void
223
    {
224
        $this->basket->insert(new Item([
225
            'id'       => 'foo',
226
            'name'     => 'bar',
227
            'price'    => 100,
228
            'quantity' => 1,
229
            'weight'   => 200,
230
        ]));
231
232
        $this->assertInstanceOf('\Lenius\Basket\Item', $this->basket->find('foo'));
233
    }
234
235
    public function testTotals(): void
236
    {
@@ 325-338 (lines=14) @@
322
        }
323
    }
324
325
    public function testTax(): void
326
    {
327
        $this->basket->insert(new Item([
328
            'id'       => 'foo',
329
            'name'     => 'bar',
330
            'price'    => 100,
331
            'quantity' => 1,
332
            'tax'      => 20,
333
            'weight'   => 200,
334
        ]));
335
336
        // Test that the tax is being calculated successfully
337
        $this->assertEquals(20, $this->basket->tax());
338
    }
339
340
    public function testTaxOptions(): void
341
    {