From ee2867db2dce41cab507dd1cf40fd1563cda4070 Mon Sep 17 00:00:00 2001 From: Alexander Vorwerk Date: Tue, 12 Oct 2021 00:51:10 +0200 Subject: [PATCH] MediaWikiTestCase -> MediaWikiIntegrationTestCase MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34. Bug: T293043 Change-Id: Icef9bbb1c515b775ccdcf6bc692c8c2cab4ae503 --- tests/phpunit/InputCheck/MathoidCheckerTest.php | 4 ++-- tests/phpunit/InputCheck/RestbaseCheckerTest.php | 2 +- tests/phpunit/MathDataUpdaterTest.php | 2 +- tests/phpunit/MathDatabaseTest.php | 2 +- tests/phpunit/MathFormatterTest.php | 2 +- tests/phpunit/MathInputCheckTest.php | 2 +- tests/phpunit/MathLaTeXMLDatabaseTest.php | 2 +- tests/phpunit/MathLaTeXMLTest.php | 2 +- tests/phpunit/MathMLRdfBuilderTest.php | 2 +- tests/phpunit/MathMathMLTest.php | 2 +- tests/phpunit/MathPngTest.php | 2 +- tests/phpunit/MathRendererTest.php | 2 +- tests/phpunit/MathRestbaseInterfaceTest.php | 2 +- tests/phpunit/MathSourceTest.php | 2 +- tests/phpunit/MathValidatorTest.php | 2 +- tests/phpunit/MathoidCliTest.php | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/phpunit/InputCheck/MathoidCheckerTest.php b/tests/phpunit/InputCheck/MathoidCheckerTest.php index e027f527e..ff8f0dff5 100644 --- a/tests/phpunit/InputCheck/MathoidCheckerTest.php +++ b/tests/phpunit/InputCheck/MathoidCheckerTest.php @@ -6,11 +6,11 @@ use HashBagOStuff; use MediaWiki\Extension\Math\MathMathML; use MediaWiki\Http\HttpRequestFactory; use MediaWiki\MediaWikiServices; -use MediaWikiTestCase; +use MediaWikiIntegrationTestCase; use MockHttpTrait; use WANObjectCache; -class MathoidCheckerTest extends MediaWikiTestCase { +class MathoidCheckerTest extends MediaWikiIntegrationTestCase { use MockHttpTrait; private const SAMPLE_KEY = 'global:MediaWiki\Extension\Math\InputCheck\MathoidChecker:' . diff --git a/tests/phpunit/InputCheck/RestbaseCheckerTest.php b/tests/phpunit/InputCheck/RestbaseCheckerTest.php index 99206ea2f..805cc72b6 100644 --- a/tests/phpunit/InputCheck/RestbaseCheckerTest.php +++ b/tests/phpunit/InputCheck/RestbaseCheckerTest.php @@ -10,7 +10,7 @@ use MediaWiki\Extension\Math\Tests\MathMockHttpTrait; * * @covers \MediaWiki\Extension\Math\InputCheck\RestbaseChecker */ -class RestbaseCheckerTest extends MediaWikiTestCase { +class RestbaseCheckerTest extends MediaWikiIntegrationTestCase { use MathMockHttpTrait; public function testValid() { diff --git a/tests/phpunit/MathDataUpdaterTest.php b/tests/phpunit/MathDataUpdaterTest.php index afc16bf64..7a31d139a 100644 --- a/tests/phpunit/MathDataUpdaterTest.php +++ b/tests/phpunit/MathDataUpdaterTest.php @@ -13,7 +13,7 @@ use Wikibase\DataModel\Statement\Statement; * * @license GPL-2.0-or-later */ -class MathDataUpdaterTest extends MediaWikiTestCase { +class MathDataUpdaterTest extends MediaWikiIntegrationTestCase { /** * @var NumericPropertyId diff --git a/tests/phpunit/MathDatabaseTest.php b/tests/phpunit/MathDatabaseTest.php index 2c3299594..963317be8 100644 --- a/tests/phpunit/MathDatabaseTest.php +++ b/tests/phpunit/MathDatabaseTest.php @@ -14,7 +14,7 @@ use MediaWiki\Extension\Math\MathRenderer; * * @license GPL-2.0-or-later */ -class MathDatabaseTest extends MediaWikiTestCase { +class MathDatabaseTest extends MediaWikiIntegrationTestCase { /** * @var MathRenderer */ diff --git a/tests/phpunit/MathFormatterTest.php b/tests/phpunit/MathFormatterTest.php index 6225a05cb..1833aec26 100644 --- a/tests/phpunit/MathFormatterTest.php +++ b/tests/phpunit/MathFormatterTest.php @@ -15,7 +15,7 @@ use Wikibase\Lib\Formatters\SnakFormatter; * * @license GPL-2.0-or-later */ -class MathFormatterTest extends MediaWikiTestCase { +class MathFormatterTest extends MediaWikiIntegrationTestCase { use MathMockHttpTrait; private const SOME_TEX = '\sin x^2'; diff --git a/tests/phpunit/MathInputCheckTest.php b/tests/phpunit/MathInputCheckTest.php index c3ded40c4..4b804e89c 100644 --- a/tests/phpunit/MathInputCheckTest.php +++ b/tests/phpunit/MathInputCheckTest.php @@ -9,7 +9,7 @@ use MediaWiki\Extension\Math\InputCheck\BaseChecker; * * @license GPL-2.0-or-later */ -class MathInputCheckTest extends MediaWikiTestCase { +class MathInputCheckTest extends MediaWikiIntegrationTestCase { public function testAbstractClass() { $InputCheck = $this->getMockForAbstractClass( BaseChecker::class ); diff --git a/tests/phpunit/MathLaTeXMLDatabaseTest.php b/tests/phpunit/MathLaTeXMLDatabaseTest.php index 42077035b..06540a76a 100644 --- a/tests/phpunit/MathLaTeXMLDatabaseTest.php +++ b/tests/phpunit/MathLaTeXMLDatabaseTest.php @@ -11,7 +11,7 @@ use MediaWiki\Extension\Math\MathLaTeXML; * * @license GPL-2.0-or-later */ -class MathLaTeXMLDatabaseTest extends MediaWikiTestCase { +class MathLaTeXMLDatabaseTest extends MediaWikiIntegrationTestCase { public $renderer; private const SOME_TEX = "a+b"; private const SOME_HTML = "ab"; diff --git a/tests/phpunit/MathLaTeXMLTest.php b/tests/phpunit/MathLaTeXMLTest.php index 03cba932e..b63b18cfc 100644 --- a/tests/phpunit/MathLaTeXMLTest.php +++ b/tests/phpunit/MathLaTeXMLTest.php @@ -11,7 +11,7 @@ use MediaWiki\Extension\Math\MathLaTeXML; * * @license GPL-2.0-or-later */ -class MathLaTeXMLTest extends MediaWikiTestCase { +class MathLaTeXMLTest extends MediaWikiIntegrationTestCase { /** * Tests the serialization of the LaTeXML settings diff --git a/tests/phpunit/MathMLRdfBuilderTest.php b/tests/phpunit/MathMLRdfBuilderTest.php index 701326f93..e66b57a9d 100644 --- a/tests/phpunit/MathMLRdfBuilderTest.php +++ b/tests/phpunit/MathMLRdfBuilderTest.php @@ -14,7 +14,7 @@ use Wikimedia\Purtle\NTriplesRdfWriter; * @covers \MediaWiki\Extension\Math\MathMLRdfBuilder * @author Moritz Schubotz (physikerwelt) */ -class MathMLRdfBuilderTest extends MediaWikiTestCase { +class MathMLRdfBuilderTest extends MediaWikiIntegrationTestCase { use MathMockHttpTrait; private const ACME_PREFIX_URL = 'http://acme/'; diff --git a/tests/phpunit/MathMathMLTest.php b/tests/phpunit/MathMathMLTest.php index d2bf1ddbc..5b63bf6cc 100644 --- a/tests/phpunit/MathMathMLTest.php +++ b/tests/phpunit/MathMathMLTest.php @@ -14,7 +14,7 @@ use Wikimedia\TestingAccessWrapper; * * @license GPL-2.0-or-later */ -class MathMathMLTest extends MediaWikiTestCase { +class MathMathMLTest extends MediaWikiIntegrationTestCase { use MathMockHttpTrait; protected function setUp(): void { diff --git a/tests/phpunit/MathPngTest.php b/tests/phpunit/MathPngTest.php index e41bdc12a..1084bed2d 100644 --- a/tests/phpunit/MathPngTest.php +++ b/tests/phpunit/MathPngTest.php @@ -8,7 +8,7 @@ use MediaWiki\Extension\Math\MathPng; * * @license GPL-2.0-or-later */ -class MathPngTest extends MediaWikiTestCase { +class MathPngTest extends MediaWikiIntegrationTestCase { /** @var string The fallback image HTML tag */ private const TEST_DUMMY = ''; diff --git a/tests/phpunit/MathRendererTest.php b/tests/phpunit/MathRendererTest.php index 7fdc47b3d..f43fe8ebe 100644 --- a/tests/phpunit/MathRendererTest.php +++ b/tests/phpunit/MathRendererTest.php @@ -12,7 +12,7 @@ use MediaWiki\Extension\Math\Tests\MathMockHttpTrait; * * @license GPL-2.0-or-later */ -class MathRendererTest extends MediaWikiTestCase { +class MathRendererTest extends MediaWikiIntegrationTestCase { use MathMockHttpTrait; private const SOME_TEX = "a+b"; diff --git a/tests/phpunit/MathRestbaseInterfaceTest.php b/tests/phpunit/MathRestbaseInterfaceTest.php index dc9f7c60b..875d06e1b 100644 --- a/tests/phpunit/MathRestbaseInterfaceTest.php +++ b/tests/phpunit/MathRestbaseInterfaceTest.php @@ -14,7 +14,7 @@ use MediaWiki\Extension\Math\Tests\MathMockHttpTrait; * * @license GPL-2.0-or-later */ -class MathRestbaseInterfaceTest extends MediaWikiTestCase { +class MathRestbaseInterfaceTest extends MediaWikiIntegrationTestCase { use MathMockHttpTrait; public function testSuccess() { diff --git a/tests/phpunit/MathSourceTest.php b/tests/phpunit/MathSourceTest.php index 9a273ec3e..3b8ec4d1d 100644 --- a/tests/phpunit/MathSourceTest.php +++ b/tests/phpunit/MathSourceTest.php @@ -11,7 +11,7 @@ use MediaWiki\Extension\Math\MathSource; * * @license GPL-2.0-or-later */ -class MathSourceTest extends MediaWikiTestCase { +class MathSourceTest extends MediaWikiIntegrationTestCase { /** * Checks the basic functionality diff --git a/tests/phpunit/MathValidatorTest.php b/tests/phpunit/MathValidatorTest.php index 4aa6277c6..ad15383da 100644 --- a/tests/phpunit/MathValidatorTest.php +++ b/tests/phpunit/MathValidatorTest.php @@ -11,7 +11,7 @@ use MediaWiki\Extension\Math\MathValidator; * * @license GPL-2.0-or-later */ -class MathValidatorTest extends MediaWikiTestCase { +class MathValidatorTest extends MediaWikiIntegrationTestCase { use MockHttpTrait; private const VADLID_TEX = "\sin x"; diff --git a/tests/phpunit/MathoidCliTest.php b/tests/phpunit/MathoidCliTest.php index b0f8b8d15..e94374201 100644 --- a/tests/phpunit/MathoidCliTest.php +++ b/tests/phpunit/MathoidCliTest.php @@ -9,7 +9,7 @@ use MediaWiki\Extension\Math\MathMathMLCli; * * @license GPL-2.0-or-later */ -class MathoidCliTest extends MediaWikiTestCase { +class MathoidCliTest extends MediaWikiIntegrationTestCase { private $goodInput = '\sin\left(\frac12x\right)'; private $badInput = '\newcommand{\text{do evil things}}'; protected static $hasMathoidCli;