From 17ac324b19c045e6c566a36cfbc4367f76fe5f43 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 29 Dec 2010 15:15:56 +0000 Subject: [PATCH] Don't error no matter if the article exists or not. Change the parent to MediaWikiTestCase. --- tests/phpunit/includes/ArticleTablesTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ); -- 2.20.1