3 require_once 'lib/WikiPlugin.php';
4 require_once 'lib/plugin/AllUsers.php';
5 require_once 'PHPUnit.php';
7 class AllUsersTest extends PHPUnit_TestCase {
8 // constructor of the test suite
9 function AllUsersTest($name) {
10 $this->PHPUnit_TestCase($name);
14 * Test that we can instantiate and run AllUsers plugin without error.
16 function testAllUsers() {
19 $lp = new WikiPlugin_AllUsers();
20 $this->assertEquals("AllUsers", $lp->getName());
23 $result = $lp->run($request->getDbh(), $args, $request, $basepage);
24 $this->assertType('object',$result,'isa PageList');