Test Targets class.

This commit is contained in:
Daniel Kraus
2017-08-26 21:06:29 +02:00
parent e2a6229487
commit 5faf4a5968
2 changed files with 5 additions and 5 deletions

View File

@ -10,9 +10,9 @@ class ParseOnEditTest extends LinkTitles\TestCase {
'wgLinkTitlesParseOnEdit' => true,
'wgLinkTitlesParseOnRender' => false
] );
$pageId = $this->insertPage( 'test page', 'This page should link to the link target' )['id'];
$pageId = $this->insertPage( 'test page', 'This page should link to the link target but not to test page' )['id'];
$page = WikiPage::newFromId( $pageId );
$this->assertSame( 'This page should link to the [[link target]]', self::getPageText( $page ) );
$this->assertSame( 'This page should link to the [[link target]] but not to test page', self::getPageText( $page ) );
}
public function testDoNotParseOnEdit() {