Code Duplication    Length = 16-16 lines in 2 locations

tests/SortableTest.php 2 locations

@@ 193-208 (lines=16) @@
190
    }
191
192
    /** @test */
193
    public function it_can_move_the_order_down()
194
    {
195
        $firstModel = Dummy::find(3);
196
        $secondModel = Dummy::find(4);
197
198
        $this->assertEquals($firstModel->order_column, 3);
199
        $this->assertEquals($secondModel->order_column, 4);
200
201
        $this->assertNotFalse($firstModel->moveOrderDown());
202
203
        $firstModel = Dummy::find(3);
204
        $secondModel = Dummy::find(4);
205
206
        $this->assertEquals($firstModel->order_column, 4);
207
        $this->assertEquals($secondModel->order_column, 3);
208
    }
209
210
    /** @test */
211
    public function it_will_not_fail_when_it_cant_move_the_order_down()
@@ 220-235 (lines=16) @@
217
    }
218
219
    /** @test */
220
    public function it_can_move_the_order_up()
221
    {
222
        $firstModel = Dummy::find(3);
223
        $secondModel = Dummy::find(4);
224
225
        $this->assertEquals($firstModel->order_column, 3);
226
        $this->assertEquals($secondModel->order_column, 4);
227
228
        $this->assertNotFalse($secondModel->moveOrderUp());
229
230
        $firstModel = Dummy::find(3);
231
        $secondModel = Dummy::find(4);
232
233
        $this->assertEquals($firstModel->order_column, 4);
234
        $this->assertEquals($secondModel->order_column, 3);
235
    }
236
237
    /** @test */
238
    public function it_will_not_break_when_it_cant_move_the_order_up()