summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-04-07 22:58:41 +0200
committerDominik Eckelmann <deckelmann@gmail.com>2012-04-07 22:58:41 +0200
commitf02cff8fb2eca19ea60977fe284032ac5ded3d6b (patch)
tree48d933518bce992a5b8d56dd8e44bd24a1814ed3 /_test
parent20dd03865303dce810c9949aab6754bc2376c5d9 (diff)
downloadrpg-f02cff8fb2eca19ea60977fe284032ac5ded3d6b.tar.gz
rpg-f02cff8fb2eca19ea60977fe284032ac5ded3d6b.tar.bz2
fixed auth_aclcheck test
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/auth_aclcheck.test.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/_test/cases/inc/auth_aclcheck.test.php b/_test/cases/inc/auth_aclcheck.test.php
index ff092c2de..3cf6a59c7 100644
--- a/_test/cases/inc/auth_aclcheck.test.php
+++ b/_test/cases/inc/auth_aclcheck.test.php
@@ -2,14 +2,27 @@
require_once DOKU_INC.'inc/init.php';
require_once DOKU_INC.'inc/auth.php';
+require_once DOKU_INC.'inc/auth/basic.class.php';
class auth_acl_test extends UnitTestCase {
+ var $oldConf;
+ var $oldAuthAcl;
+
+ function setup() {
+ global $conf;
+ global $AUTH_ACL;
+ global $auth;
+ $this->oldConf = $conf;
+ $this->oldAuthAcl = $AUTH_ACL;
+ $auth = new auth_basic();
+ }
+
function teardown() {
global $conf;
global $AUTH_ACL;
- unset($conf);
- unset($AUTH_ACL);
+ $conf = $this->oldConf;
+ $AUTH_ACL = $this->oldAuthAcl;
}