From: Antoine Musso Date: Thu, 12 Jan 2012 16:42:33 +0000 (+0000) Subject: swap assertEquals parameters in TemplateCategoriesTest X-Git-Tag: 1.31.0-rc.0~25336 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=ee868909e9a7add951a60bb6b60dd1a6a76ca84f;p=lhc%2Fweb%2Fwiklou.git swap assertEquals parameters in TemplateCategoriesTest First parameter is expected, second is the result --- diff --git a/tests/phpunit/includes/TemplateCategoriesTest.php b/tests/phpunit/includes/TemplateCategoriesTest.php index 0a6e18c442..de9d6dc6dc 100644 --- a/tests/phpunit/includes/TemplateCategoriesTest.php +++ b/tests/phpunit/includes/TemplateCategoriesTest.php @@ -16,7 +16,10 @@ class TemplateCategoriesTest extends MediaWikiLangTestCase { $wgUser->mRights['*'] = array( 'createpage', 'edit', 'purge' ); $status = $article->doEdit( '{{Categorising template}}', 'Create a page with a template', 0 ); - $this->assertEquals( $title->getParentCategories(), array() ); + $this->assertEquals( + array() + , $title->getParentCategories() + ); $template = new Article( Title::newFromText( 'Template:Categorising template' ) ); $status = $template->doEdit( '[[Category:Solved bugs]]', 'Add a category through a template', 0 ); @@ -26,7 +29,10 @@ class TemplateCategoriesTest extends MediaWikiLangTestCase { $jobs->loadParamsAndArgs( null, array( 'quiet' => true ), null ); $jobs->execute(); - $this->assertEquals( $title->getParentCategories(), array( 'Category:Solved_bugs' => $title->getPrefixedText() ) ); + $this->assertEquals( + array( 'Category:Solved_bugs' => $title->getPrefixedText() ) + , $title->getParentCategories() + ); } }