Skip to content

Commit

Permalink
Updated the test of the deleteDescendants to match the consistent ret…
Browse files Browse the repository at this point in the history
…urn value type integer.
  • Loading branch information
Martin Brecht-Precht committed Nov 13, 2015
1 parent 6849068 commit 002f4e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
Expand Down

0 comments on commit 002f4e8

Please sign in to comment.