Code Duplication    Length = 13-13 lines in 2 locations

tests/NestedIntervalsBehavior64TestCase.php 1 location

@@ 180-192 (lines=13) @@
177
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
178
    }
179
180
    public function testMakeRootUpdate()
181
    {
182
        $node = MultipleTreeNode64::findOne(9);
183
        $this->assertTrue($node->makeRoot()->save());
184
185
        $node = MultipleTreeNode64::findOne(27);
186
        $node->setAttribute('tree', 223372036854775807);
187
        $this->assertTrue($node->makeRoot()->save());
188
189
        $dataSet = $this->getConnection()->createDataSet(['multiple_tree_64']);
190
        $expectedDataSet = new ArrayDataSet(require(__DIR__ . '/data/test-make-root-update-64.php'));
191
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
192
    }
193
194
    public function testPrependToInsertInNoEmpty()
195
    {

tests/NestedIntervalsBehaviorTestCase.php 1 location

@@ 205-217 (lines=13) @@
202
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
203
    }
204
205
    public function testMakeRootUpdate()
206
    {
207
        $node = MultipleTreeNode::findOne(9);
208
        $this->assertTrue($node->makeRoot()->save());
209
210
        $node = MultipleTreeNode::findOne(27);
211
        $node->setAttribute('tree', 100);
212
        $this->assertTrue($node->makeRoot()->save());
213
214
        $dataSet = $this->getConnection()->createDataSet(['tree', 'multiple_tree']);
215
        $expectedDataSet = new ArrayDataSet(require(__DIR__ . '/data/test-make-root-update.php'));
216
        $this->assertDataSetsEqual($expectedDataSet, $dataSet);
217
    }
218
219
    /**
220
     * @expectedException \yii\base\Exception