pluginsEnabled[] = 'include'; parent::setUp(); $this->helper = plugin_load('helper', 'include'); saveWikiText('wiki:included', <<test|{{dokuwiki.png?w=300}}]] * [[test|{{https://www.dokuwiki.org/lib/tpl/dokuwiki/images/logo.png}}]] EOF , 'Test setup'); idx_addPage('wiki:included'); saveWikiText('test:include', '{{page>..:wiki:included}}', 'Test setup'); idx_addPage('test:include'); } public function testInternalLinkTitleConversion() { $html = p_wiki_xhtml('test:include'); $this->assertStringContainsString('src="'.ml('wiki:dokuwiki.png').'"', $html); } public function testLocalLinkTitleConversion() { $html = p_wiki_xhtml('test:include'); $this->assertStringContainsString('src="'.ml('wiki:dokuwiki.png', array('w' => '200')).'"', $html); } public function testInterWikiLinkTitleConversion() { $html = p_wiki_xhtml('test:include'); $this->assertStringContainsString('src="'.ml('wiki:dokuwiki.png', array('w' => '300')).'"', $html); } public function testExternalMediaNotConverted() { $html = p_wiki_xhtml('test:include'); $this->assertStringContainsString('src="'.ml('https://www.dokuwiki.org/lib/tpl/dokuwiki/images/logo.png').'"', $html); } }