From: Platonides Date: Wed, 29 Dec 2010 15:15:56 +0000 (+0000) Subject: Don't error no matter if the article exists or not. X-Git-Tag: 1.31.0-rc.0~33010 X-Git-Url: https://git.cyclocoop.org/admin/Duna?a=commitdiff_plain;h=17ac324b19c045e6c566a36cfbc4367f76fe5f43;p=lhc%2Fweb%2Fwiklou.git Don't error no matter if the article exists or not. Change the parent to MediaWikiTestCase. --- diff --git a/tests/phpunit/includes/ArticleTablesTest.php b/tests/phpunit/includes/ArticleTablesTest.php index fc9e1c4db7..23a7705fd8 100644 --- a/tests/phpunit/includes/ArticleTablesTest.php +++ b/tests/phpunit/includes/ArticleTablesTest.php @@ -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' );