Code Duplication    Length = 10-10 lines in 2 locations

tests/core/DecrementTest.php 1 location

@@ 24-33 (lines=10) @@
21
    }
22
23
    /** @test */
24
    public function a_row_does_not_decrement()
25
    {
26
        $this->app['config']->set('increment-decrement.last_row_can_decrement', false);
27
28
        $row = TestModel::where('order', 5)->first();
29
30
        $this->assertEquals(5, $row->order);
31
        $this->order->decrement($row);
32
        $this->assertEquals(5, $row->order);
33
    }
34
}

tests/core/IncrementTest.php 1 location

@@ 25-34 (lines=10) @@
22
    }
23
24
    /** @test */
25
    public function a_row_does_not_increments()
26
    {
27
        $this->app['config']->set('increment-decrement.first_row_can_increment', false);
28
29
        $row = TestModel::first();
30
31
        $this->assertEquals(1, $row->order);
32
        $this->order->increment($row);
33
        $this->assertEquals(1, $row->order);
34
    }
35
}