MediaWikiTestCase -> MediaWikiIntegrationTestCase

MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: Icef9bbb1c515b775ccdcf6bc692c8c2cab4ae503
This commit is contained in:
Alexander Vorwerk 2021-10-12 00:51:10 +02:00
parent bc39807052
commit ee2867db2d
16 changed files with 17 additions and 17 deletions

View file

@ -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:' .

View file

@ -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() {

View file

@ -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

View file

@ -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
*/

View file

@ -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';

View file

@ -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 );

View file

@ -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 = "a<sub>b</sub>";

View file

@ -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

View file

@ -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/';

View file

@ -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 {

View file

@ -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 = '<img src="test.png" />';

View file

@ -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";

View file

@ -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() {

View file

@ -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

View file

@ -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";

View file

@ -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;