summaryrefslogtreecommitdiff
path: root/modules/tag/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-02-23 13:50:57 -0800
committerBharat Mediratta <bharat@menalto.com>2010-02-23 13:50:57 -0800
commitd4423eb34970f0068af463ebea17a748910ca835 (patch)
tree622c70072f2b3d7afdb9732a65dcbca0f0b81f8f /modules/tag/tests
parentde1785d9fa020ca150e0e8789b564e65377da0f1 (diff)
Reset the active user to admin in all test cases where we change the
user to something else.
Diffstat (limited to 'modules/tag/tests')
-rw-r--r--modules/tag/tests/Tags_Rest_Helper_Test.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/tag/tests/Tags_Rest_Helper_Test.php b/modules/tag/tests/Tags_Rest_Helper_Test.php
index cdf7bfdf..dbad0b02 100644
--- a/modules/tag/tests/Tags_Rest_Helper_Test.php
+++ b/modules/tag/tests/Tags_Rest_Helper_Test.php
@@ -26,6 +26,10 @@ class Tags_Rest_Helper_Test extends Gallery_Unit_Test_Case {
}
}
+ public function teardown() {
+ identity::set_active_user(identity::admin_user());
+ }
+
public function get_test() {
$t1 = tag::add(item::root(), "t1");
$t2 = tag::add(item::root(), "t2");