From 013d57f98ce9747d815e5809cc78da0b450adf6c Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Mon, 22 Jul 2019 02:49:41 +0200 Subject: [PATCH] Avoid using MediaWikiIntegrationTestCase on unit tests MediaWikiIntegrationTestCase (formerlly know as MediaWikiTestCase) is a very heavy class that resets the database, caches and services between every test. Bug: T229180 Change-Id: I3d328d6ba7009e87c0f432a4f8d84d774ea57e5f --- tests/phpunit/common/HooksTest.php | 4 +++- .../engines/LuaCommon/LuaEnvironmentComparisonTest.php | 5 ++++- tests/phpunit/engines/LuaCommon/LuaInterpreterTest.php | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/common/HooksTest.php b/tests/phpunit/common/HooksTest.php index d6002543..567ac97d 100644 --- a/tests/phpunit/common/HooksTest.php +++ b/tests/phpunit/common/HooksTest.php @@ -1,6 +1,8 @@ 50000000, 'cpuLimit' => 30, diff --git a/tests/phpunit/engines/LuaCommon/LuaInterpreterTest.php b/tests/phpunit/engines/LuaCommon/LuaInterpreterTest.php index 0a231217..71ccd61a 100644 --- a/tests/phpunit/engines/LuaCommon/LuaInterpreterTest.php +++ b/tests/phpunit/engines/LuaCommon/LuaInterpreterTest.php @@ -1,6 +1,9 @@