Don't error no matter if the article exists or not.
authorPlatonides <platonides@users.mediawiki.org>
Wed, 29 Dec 2010 15:15:56 +0000 (15:15 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 29 Dec 2010 15:15:56 +0000 (15:15 +0000)
Change the parent to MediaWikiTestCase.

tests/phpunit/includes/ArticleTablesTest.php

index fc9e1c4..23a7705 100644 (file)
@@ -4,7 +4,7 @@
  * @group Database
  * @group Destructive
  */
-class ArticleTablesTest extends PHPUnit_Framework_TestCase {
+class ArticleTablesTest extends MediaWikiTestCase {
        
        function testbug14404() {
                global $wgUser, $wgContLang, $wgLang;
@@ -16,7 +16,7 @@ class ArticleTablesTest extends PHPUnit_Framework_TestCase {
                $wgContLang = Language::factory( 'es' );
                
                $wgLang = Language::factory( 'fr' );
-               $status = $article->doEdit( '{{:{{int:history}}}}', 'Test code for bug 14404', EDIT_NEW | EDIT_UPDATE );
+               $status = $article->doEdit( '{{:{{int:history}}}}', 'Test code for bug 14404', 0 );
                $templates1 = $article->getUsedTemplates();
 
                $wgLang = Language::factory( 'de' );