Esempio n. 1
0
 /**
  * Test the plugin with the typical editpage template call.
  */
 function testIncludePageSynopsis()
 {
     global $request;
     $pagename = 'Help/TextFormattingRules';
     $lp = new WikiPlugin_IncludePage();
     $this->assertEquals("IncludePage", $lp->getName());
     $dbi = $request->getDbh();
     $result = $lp->run($dbi, "page={$pagename} section=Synopsis quiet=1", $request, "IncludePage");
     $this->assertType('object', $result, 'isa HtmlElement');
     //TODO: check content for found and extracted section
 }