From 7cba8b280e7d03e83e9e3da899ed31b9ce795e22 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 10 Mar 2014 13:04:53 +1100 Subject: [PATCH] Fix "UTPage" creation in tests Change-Id: If414c633a3abb6019f9d677b70e6bc790c0c241d --- tests/phpunit/MediaWikiTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 4d64d0577d..1572cb0636 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -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', -- 2.20.1