Code Duplication    Length = 12-15 lines in 2 locations

tests/BasketTest.php 2 locations

@@ 250-261 (lines=12) @@
247
        $this->assertEquals(130, $this->basket->total(false));
248
    }
249
250
    public function testFind()
251
    {
252
        $this->basket->insert([
253
            'id'       => 'foo',
254
            'name'     => 'bar',
255
            'price'    => 100,
256
            'quantity' => 1,
257
            'weight'   => 200,
258
        ]);
259
260
        $this->assertInstanceOf('\Lenius\Basket\Item', $this->basket->find('foo'));
261
    }
262
263
    public function testTotals()
264
    {
@@ 374-388 (lines=15) @@
371
        }
372
    }
373
374
    public function testTax()
375
    {
376
        $this->basket->insert([
377
            'id'       => 'foo',
378
            'name'     => 'bar',
379
            'price'    => 100,
380
            'quantity' => 1,
381
            'tax'      => 20,
382
            'weight'   => 200,
383
        ]);
384
385
        // Test that the tax is being calculated successfully
386
        $this->assertEquals(20, $this->basket->tax());
387
    }
388
389
    public function testTaxOptions()
390
    {
391
        $this->basket->insert([