mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
18 lines
511 B
PHP
18 lines
511 B
PHP
<?php
|
|
/**
|
|
* @group bovender
|
|
* @group Database
|
|
*/
|
|
class ParseOnEditTest extends LinkTitles\TestCase {
|
|
|
|
public function testParseOnEdit() {
|
|
$this->setMwGlobals( [
|
|
'wgLinkTitlesParseOnEdit' => true,
|
|
'wgLinkTitlesParseOnRender' => true
|
|
] );
|
|
$pageId = $this->insertPage( 'test page', 'This page should link to the link target' )['id'];
|
|
$page = WikiPage::newFromId( $pageId );
|
|
$this->assertSame( 'This page should link to the [[link target]]', self::getPageText( $page ) );
|
|
}
|
|
}
|