From: Christian Aistleitner Date: Wed, 27 Jun 2012 19:49:24 +0000 (+0200) Subject: Proper check for false when checking parentid X-Git-Tag: 1.31.0-rc.0~23218^2 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=6cfae437952cc0d3db4c765394d0cfb6eb078f40;p=lhc%2Fweb%2Fwiklou.git Proper check for false when checking parentid Change-Id: Ie7154fd3904ef5ed8bb3cecbd10ebddbb67e53f2 --- diff --git a/tests/phpunit/maintenance/DumpTestCase.php b/tests/phpunit/maintenance/DumpTestCase.php index e71e76c7d5..b5eb573761 100644 --- a/tests/phpunit/maintenance/DumpTestCase.php +++ b/tests/phpunit/maintenance/DumpTestCase.php @@ -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 );