summaryrefslogtreecommitdiff
path: root/core/tests
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/Access_Helper_Test.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/tests/Access_Helper_Test.php b/core/tests/Access_Helper_Test.php
index 4643eb1a..3141078d 100644
--- a/core/tests/Access_Helper_Test.php
+++ b/core/tests/Access_Helper_Test.php
@@ -275,9 +275,18 @@ class Access_Helper_Test extends Unit_Test_Case {
$album = album::create($root->id, rand(), "test album");
$this->assert_false(file_exists($album->file_path() . "/.htaccess"));
+
access::deny(group::everybody(), "view", $album);
$this->assert_true(file_exists($album->file_path() . "/.htaccess"));
+
access::allow(group::everybody(), "view", $album);
$this->assert_false(file_exists($album->file_path() . "/.htaccess"));
+
+ access::deny(group::everybody(), "view", $album);
+ $this->assert_true(file_exists($album->file_path() . "/.htaccess"));
+
+ access::reset(group::everybody(), "view", $album);
+ $this->assert_false(file_exists($album->file_path() . "/.htaccess"));
}
+
}