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
This commit is contained in:
Amir Sarabadani 2019-07-22 02:49:41 +02:00 committed by jenkins-bot
parent a36cb74268
commit 013d57f98c
3 changed files with 11 additions and 3 deletions

View file

@ -1,6 +1,8 @@
<?php
class ScribuntoHooksTest extends MediaWikiLangTestCase {
class ScribuntoHooksTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
public function provideContentHandlerDefaultModelFor() {
return [

View file

@ -6,7 +6,10 @@
* @group LuaStandalone
* @coversNothing
*/
class Scribunto_LuaEnvironmentComparisonTest extends MediaWikiTestCase {
class Scribunto_LuaEnvironmentComparisonTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
public $sandboxOpts = [
'memoryLimit' => 50000000,
'cpuLimit' => 30,

View file

@ -1,6 +1,9 @@
<?php
abstract class Scribunto_LuaInterpreterTest extends MediaWikiTestCase {
abstract class Scribunto_LuaInterpreterTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
/**
* @return Scribunto_LuaInterpreter
*/