From 002f4e87c92d218bb16a15287b1be7cd6873b04b Mon Sep 17 00:00:00 2001 From: Martin Brecht-Precht Date: Fri, 13 Nov 2015 11:30:33 +0100 Subject: [PATCH] Updated the test of the deleteDescendants to match the consistent return value type integer. --- .../nestedset/NestedSetBehaviorObjectBuilderModifierTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php b/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php index cf36b755c..8812274cf 100644 --- a/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php +++ b/test/testsuite/generator/behavior/nestedset/NestedSetBehaviorObjectBuilderModifierTest.php @@ -1433,7 +1433,7 @@ public function testDeleteDescendants() | \ t6 t7 */ - $this->assertNull($t2->deleteDescendants(), 'deleteDescendants() returns null leafs'); + $this->assertEquals(0, $t2->deleteDescendants(), 'deleteDescendants() returns 0 leafs'); $this->assertEquals(4, $t3->deleteDescendants(), 'deleteDescendants() returns the number of deleted nodes'); $this->assertEquals(5, $t3->getRightValue(), 'deleteDescendants() updates the current node'); $this->assertEquals(5, $t4->getLeftValue(), 'deleteDescendants() does not update existing nodes (because delete() clears the instance cache)');