summaryrefslogtreecommitdiff
path: root/modules/comment/tests/Comment_Model_Test.php
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/comment/tests/Comment_Model_Test.php
parentde1785d9fa020ca150e0e8789b564e65377da0f1 (diff)
Reset the active user to admin in all test cases where we change the
user to something else.
Diffstat (limited to 'modules/comment/tests/Comment_Model_Test.php')
-rw-r--r--modules/comment/tests/Comment_Model_Test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/tests/Comment_Model_Test.php b/modules/comment/tests/Comment_Model_Test.php
index f0449c05..798e4f6d 100644
--- a/modules/comment/tests/Comment_Model_Test.php
+++ b/modules/comment/tests/Comment_Model_Test.php
@@ -18,6 +18,9 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class Comment_Model_Test extends Gallery_Unit_Test_Case {
+ public function teardown() {
+ identity::set_active_user(identity::admin_user());
+ }
public function cant_view_comments_for_unviewable_items_test() {
$album = test::random_album();