mirror of
				https://github.com/diocloid/LinkTitles.git
				synced 2025-10-22 05:42:32 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			535 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			535 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?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 );
 | 
						|
  }
 | 
						|
}
 |