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