2020-05-12 18:22:37 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use MediaWiki\Extension\Math\InputCheck\InputCheckFactory;
|
|
|
|
use MediaWiki\Extension\Math\InputCheck\MathoidChecker;
|
2021-08-11 13:38:51 +00:00
|
|
|
use MediaWiki\Tests\Unit\MockServiceDependenciesTrait;
|
2020-05-12 18:22:37 +00:00
|
|
|
|
|
|
|
/**
|
2021-08-11 13:38:51 +00:00
|
|
|
* @method InputCheckFactory newServiceInstance( string $serviceClass, array $parameterOverrides )
|
2021-04-07 22:22:05 +00:00
|
|
|
* @covers \MediaWiki\Extension\Math\InputCheck\InputCheckFactory
|
2020-05-12 18:22:37 +00:00
|
|
|
*/
|
|
|
|
class InputCheckFactoryTest extends MediaWikiUnitTestCase {
|
2021-08-11 13:38:51 +00:00
|
|
|
use MockServiceDependenciesTrait;
|
2020-05-12 18:22:37 +00:00
|
|
|
|
2021-08-11 13:38:51 +00:00
|
|
|
public function testNewMathoidChecker() {
|
|
|
|
$checker = $this->newServiceInstance( InputCheckFactory::class, [] )
|
|
|
|
->newMathoidChecker( 'FORMULA', 'TYPE' );
|
|
|
|
$this->assertInstanceOf( MathoidChecker::class, $checker );
|
2020-05-12 18:22:37 +00:00
|
|
|
}
|
|
|
|
}
|