Proper check for false when checking parentid
authorChristian Aistleitner <christian@quelltextlich.at>
Wed, 27 Jun 2012 19:49:24 +0000 (21:49 +0200)
committerChristian Aistleitner <christian@quelltextlich.at>
Wed, 27 Jun 2012 19:49:24 +0000 (21:49 +0200)
Change-Id: Ie7154fd3904ef5ed8bb3cecbd10ebddbb67e53f2

tests/phpunit/maintenance/DumpTestCase.php

index e71e76c..b5eb573 100644 (file)
@@ -303,7 +303,7 @@ abstract class DumpTestCase extends MediaWikiLangTestCase {
                $this->skipWhitespace();
 
                $this->assertTextNode( "id", $id );
-               if( $parentid ) {
+               if ( $parentid !== false ) {
                        $this->assertTextNode( "parentid", $parentid );
                }
                $this->assertTextNode( "timestamp", false );