Skip to content

Commit 002f4e8

Browse files
author
Martin Brecht-Precht
committed
Updated the test of the deleteDescendants to match the consistent return value type integer.
1 parent 6849068 commit 002f4e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ public function testDeleteDescendants()
14331433
| \
14341434
t6 t7
14351435
*/
1436-
$this->assertNull($t2->deleteDescendants(), 'deleteDescendants() returns null leafs');
1436+
$this->assertEquals(0, $t2->deleteDescendants(), 'deleteDescendants() returns 0 leafs');
14371437
$this->assertEquals(4, $t3->deleteDescendants(), 'deleteDescendants() returns the number of deleted nodes');
14381438
$this->assertEquals(5, $t3->getRightValue(), 'deleteDescendants() updates the current node');
14391439
$this->assertEquals(5, $t4->getLeftValue(), 'deleteDescendants() does not update existing nodes (because delete() clears the instance cache)');

0 commit comments

Comments
 (0)