mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-22 01:19:54 -04:00
Reset the active user to admin in all test cases where we change the
user to something else.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user