mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-18 08:40:33 +00:00
7a3f46b490
Bug: T47514 Depends-On: I97d61b5793159cea365740e0563f7b733e0f16de Change-Id: I31b80fc1c7701fc1075d655270706e341942415d
28 lines
954 B
PHP
28 lines
954 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\CodeMirror\Tests;
|
|
|
|
use MediaWiki\Extension\CodeMirror\DataScript;
|
|
use MediaWiki\ResourceLoader\Context;
|
|
|
|
/**
|
|
* @covers \MediaWiki\Extension\CodeMirror\DataScript
|
|
*/
|
|
class DataScriptTest extends \MediaWikiIntegrationTestCase {
|
|
|
|
public function testMakeScript() {
|
|
$context = $this->createMock( Context::class );
|
|
|
|
$script = DataScript::makeScript( $context );
|
|
$this->assertStringContainsString( '"extCodeMirrorConfig":', $script );
|
|
$this->assertStringContainsString( '"pluginModules":', $script );
|
|
$this->assertStringContainsString( '"tagModes":', $script );
|
|
$this->assertStringContainsString( '"tags":', $script );
|
|
$this->assertStringContainsString( '"doubleUnderscore":', $script );
|
|
$this->assertStringContainsString( '"functionSynonyms":', $script );
|
|
$this->assertStringContainsString( '"urlProtocols":', $script );
|
|
$this->assertStringContainsString( '"linkTrailCharacters":', $script );
|
|
}
|
|
|
|
}
|