function test99DumpHtml() { global $request, $cur_dir; $request->setArg('directory', $cur_dir . '/.dumphtml'); purge_dir($cur_dir . "/.dumphtml"); purge_dir($cur_dir . "/.dumphtml/images"); $request->setArg('pagename', _("PhpWikiAdministration")); $request->setArg('pages', ''); //FIXME: LinkDatabase doesn't work for DumpHtmlToDir //$request->setArg('exclude','LinkDatabase'); // this does not work with format=text => exit DumpHtmlToDir($request); $this->assertTrue(file_exists($cur_dir . "/.dumphtml/" . HOME_PAGE . ".html")); }
function action_dumphtml() { include_once "lib/loadsave.php"; DumpHtmlToDir($this); }