]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - tests/unit/lib/plugin/OrphanedPagesTest.php
Add svn:keywords
[SourceForge/phpwiki.git] / tests / unit / lib / plugin / OrphanedPagesTest.php
1 <?php // $Id$
2
3 require_once 'lib/WikiPlugin.php';
4 require_once 'lib/plugin/OrphanedPages.php';
5 require_once 'PHPUnit.php';
6
7 class OrphanedPagesTest extends phpwiki_TestCase {
8     /**
9      * Test that we can instantiate and run OrphanedPages plugin without error.
10      */
11     function testOrphanedPages() {
12         global $request;
13
14         $lp = new WikiPlugin_OrphanedPages();
15         $this->assertEquals("OrphanedPages", $lp->getName());
16         $basepage = "";
17         $args = "";
18         $result = $lp->run($request->getDbh(), $args, $request, $basepage);
19         $this->assertType('object',$result,'isa PageList');
20     }
21 }
22
23
24 ?>