mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 01:39:30 +02:00
Refactor, add Targets class.
This commit is contained in:
20
tests/phpunit/ConfigTest.php
Normal file
20
tests/phpunit/ConfigTest.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Tests the LinkTitles\Config class.
|
||||
*
|
||||
* This single unit test basically serves to ensure the Config class is working.
|
||||
* @group bovender
|
||||
* @group Database
|
||||
*/
|
||||
class ConfigTest extends LinkTitles\TestCase {
|
||||
|
||||
public function testParseOnEdit() {
|
||||
$this->setMwGlobals( [
|
||||
'wgLinkTitlesParseOnEdit' => true,
|
||||
'wgLinkTitlesParseOnRender' => false
|
||||
] );
|
||||
$config = new LinkTitles\Config();
|
||||
global $wgLinkTitlesParseOnEdit;
|
||||
$this->assertSame( $config->parseOnEdit, $wgLinkTitlesParseOnEdit );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user