Fix "UTPage" creation in tests
authorAndrew Garrett <agarrett@wikimedia.org>
Mon, 10 Mar 2014 02:04:53 +0000 (13:04 +1100)
committerHoo man <hoo@online.de>
Tue, 22 Apr 2014 17:52:20 +0000 (17:52 +0000)
Change-Id: If414c633a3abb6019f9d677b70e6bc790c0c241d

tests/phpunit/MediaWikiTestCase.php

index 4d64d05..1572cb0 100644 (file)
@@ -429,7 +429,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
 
                //Make 1 page with 1 revision
                $page = WikiPage::factory( Title::newFromText( 'UTPage' ) );
-               if ( !$page->getId() == 0 ) {
+               if ( $page->getId() == 0 ) {
                        $page->doEditContent(
                                new WikitextContent( 'UTContent' ),
                                'UTPageSummary',