From ee868909e9a7add951a60bb6b60dd1a6a76ca84f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 12 Jan 2012 16:42:33 +0000 Subject: [PATCH] swap assertEquals parameters in TemplateCategoriesTest First parameter is expected, second is the result --- tests/phpunit/includes/TemplateCategoriesTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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() + ); } } -- 2.20.1