Skip to content

Commit 462d37e

Browse files
committed
Added new cases to unit tests
1 parent 17e8292 commit 462d37e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/NestedSetsBehaviorTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public function testMakeRootNew()
2727
$node = new Tree(['name' => 'Root']);
2828
$this->assertTrue($node->makeRoot());
2929

30-
$node = new MultipleRootsTree(['name' => 'Root']);
30+
$node = new MultipleRootsTree(['name' => 'Root 1']);
31+
$this->assertTrue($node->makeRoot());
32+
33+
$node = new MultipleRootsTree(['name' => 'Root 2']);
3134
$this->assertTrue($node->makeRoot());
3235

3336
$dataSet = $this->getConnection()->createDataSet(['tree', 'multiple_roots_tree']);

0 commit comments

Comments
 (0)