Code Duplication    Length = 15-15 lines in 2 locations

tests/NestedIntervalsBehavior64TestCase.php 2 locations

@@ 280-294 (lines=15) @@
277
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
278
    }
279
280
    public function testPrependToInsertInEmptyAmount13Reserve3()
281
    {
282
        $config = [
283
            'amountOptimize' => 13,
284
            'reserveFactor'  => 3,
285
        ];
286
287
        $node = new MultipleTreeNode64(['slug' => 'new']);
288
        Yii::configure($node->getBehavior('tree'), $config);
289
        $this->assertTrue($node->prependTo(MultipleTreeNode64::findOne(6))->save());
290
291
        $dataSet = $this->getConnection()->createDataSet(['multiple_tree_64']);
292
        $expectedDataSet = new ArrayDataSet(require(__DIR__ . '/data/test-prepend-to-insert-in-empty-amount-13-reserve-3-64.php'));
293
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
294
    }
295
296
    public function testPrependToUpdate()
297
    {
@@ 402-416 (lines=15) @@
399
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
400
    }
401
402
    public function testAppendToInsertInEmptyAmount13Reserve3()
403
    {
404
        $config = [
405
            'amountOptimize' => 13,
406
            'reserveFactor'  => 3,
407
        ];
408
409
        $node = new MultipleTreeNode64(['slug' => 'new']);
410
        Yii::configure($node->getBehavior('tree'), $config);
411
        $this->assertTrue($node->appendTo(MultipleTreeNode64::findOne(6))->save());
412
413
        $dataSet = $this->getConnection()->createDataSet(['multiple_tree_64']);
414
        $expectedDataSet = new ArrayDataSet(require(__DIR__ . '/data/test-append-to-insert-in-empty-amount-13-reserve-3-64.php'));
415
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
416
    }
417
418
    public function testAppendToUpdate()
419
    {