Make it work in wikis not configured in English.
authorPlatonides <platonides@gmail.com>
Wed, 23 May 2012 21:09:15 +0000 (23:09 +0200)
committerPlatonides <platonides@gmail.com>
Wed, 23 May 2012 21:09:15 +0000 (23:09 +0200)
(hardcodes message values)
 php phpunit.php includes/WikiPageTest.php

Change-Id: I4b93d983f467fd281695be5ac778d30db0b09c17

tests/phpunit/includes/WikiPageTest.php

index 65abdab..c8606cc 100644 (file)
@@ -4,7 +4,7 @@
 * ^--- important, causes temporary tables to be used instead of the real database
 **/
 
-class WikiPageTest extends MediaWikiTestCase {
+class WikiPageTest extends MediaWikiLangTestCase {
 
        var $pages_to_delete;
 
@@ -30,6 +30,7 @@ class WikiPageTest extends MediaWikiTestCase {
        }
 
        public function setUp() {
+               parent::setUp();
                $this->pages_to_delete = array();
        }
 
@@ -45,6 +46,7 @@ class WikiPageTest extends MediaWikiTestCase {
                                // fail silently
                        }
                }
+               parent::tearDown();
        }
 
        protected function newPage( $title ) {