Reset the active user to admin in all test cases where we change the

user to something else.
This commit is contained in:
Bharat Mediratta
2010-02-23 13:50:57 -08:00
parent de1785d9fa
commit d4423eb349
5 changed files with 17 additions and 6 deletions

View File

@@ -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();