mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
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:
parent
a36cb74268
commit
013d57f98c
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
class ScribuntoHooksTest extends MediaWikiLangTestCase {
|
||||
class ScribuntoHooksTest extends PHPUnit\Framework\TestCase {
|
||||
use MediaWikiCoversValidator;
|
||||
use PHPUnit4And6Compat;
|
||||
|
||||
public function provideContentHandlerDefaultModelFor() {
|
||||
return [
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue