From 6be5a71cc25614f669034f4f0fa86b5f109aaac6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 21 Jan 2010 20:16:57 -0800 Subject: Actually deny permissions in delete_item_from_tag_fails_without_permissions_test().. --- modules/tag/tests/Tag_Rest_Helper_Test.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/tag/tests') diff --git a/modules/tag/tests/Tag_Rest_Helper_Test.php b/modules/tag/tests/Tag_Rest_Helper_Test.php index 389a512a..427d1a71 100644 --- a/modules/tag/tests/Tag_Rest_Helper_Test.php +++ b/modules/tag/tests/Tag_Rest_Helper_Test.php @@ -124,6 +124,8 @@ class Tag_Rest_Helper_Test extends Gallery_Unit_Test_Case { $tag = tag::add($album, "tag1"); $this->assert_equal(1, $tag->items()->count()); + access::deny(identity::everybody(), "edit", $album); + $request->url = rest::url("tag", $tag); $request->params->url = rest::url("gallery", $album); -- cgit v1.2.3