From f02cff8fb2eca19ea60977fe284032ac5ded3d6b Mon Sep 17 00:00:00 2001 From: Dominik Eckelmann Date: Sat, 7 Apr 2012 22:58:41 +0200 Subject: fixed auth_aclcheck test --- _test/cases/inc/auth_aclcheck.test.php | 17 +++++++++++++++-- 1 file 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; } -- cgit v1.2.3