mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +00:00
MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34. Bug: T293043 Change-Id: Icef9bbb1c515b775ccdcf6bc692c8c2cab4ae503
This commit is contained in:
parent
bc39807052
commit
ee2867db2d
|
@ -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:' .
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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>";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/';
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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" />';
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue