summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-01-22 11:58:01 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2012-01-22 11:58:01 +0100
commit995dc0ce9ce4e23e9f15e7088aa1219ab72835cb (patch)
tree4e7a67f7822bea82fdaf827cc5253d7cbaa77922 /_test
parente61127e4af913a252fbe5c8f427501268501895c (diff)
downloadrpg-995dc0ce9ce4e23e9f15e7088aa1219ab72835cb.tar.gz
rpg-995dc0ce9ce4e23e9f15e7088aa1219ab72835cb.tar.bz2
fixed testcase
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/remote.test.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/_test/cases/inc/remote.test.php b/_test/cases/inc/remote.test.php
index f5da3c06d..186f8e65a 100644
--- a/_test/cases/inc/remote.test.php
+++ b/_test/cases/inc/remote.test.php
@@ -2,9 +2,14 @@
require_once DOKU_INC . 'inc/init.php';
require_once DOKU_INC . 'inc/RemoteAPICore.php';
+require_once DOKU_INC . 'inc/auth/basic.class.php';
Mock::generate('Doku_Plugin_Controller');
+class MockAuth extends auth_basic {
+ function isCaseSensitive() { return true; }
+}
+
class RemoteAPICoreTest {
function __getRemoteInfo() {
@@ -122,6 +127,7 @@ class remote_test extends UnitTestCase {
global $plugin_controller;
global $conf;
global $USERINFO;
+ global $auth;
parent::setUp();
$pluginManager = new MockDoku_Plugin_Controller();
@@ -136,6 +142,8 @@ class remote_test extends UnitTestCase {
$this->userinfo = $USERINFO;
$this->remote = new RemoteAPI();
+
+ $auth = new MockAuth();
}
function tearDown() {
@@ -185,7 +193,6 @@ class remote_test extends UnitTestCase {
$conf['useacl'] = 1;
$conf['remoteuser'] = '@grp,@grp2';
$USERINFO['grps'] = array('grp');
-
$this->assertTrue($this->remote->hasAccess());
}