aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-04 12:38:55 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-04 12:47:03 +0100
commit17e8f2fee732202a7412e4d266408ba3e73b16c2 (patch)
tree76187b89704e44d5bb6944b16775e45dc0ae9cd8 /t/cobrand
parent4f1d340588ead562a332993d88690518d0ac3886 (diff)
[Zurich] Test for only superusers can add bodies
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/zurich.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 87477b9f8..97e525981 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -245,6 +245,12 @@ $mech->get( '/admin/body/' . $zurich->id );
is $mech->res->code, 404, "only superuser should be able to edit bodies";
$mech->log_out_ok;
+# Test only superuser can add bodies
+$user = $mech->log_in_ok( 'dm1@example.org') ;
+$mech->get( '/admin/bodies' );
+$mech->content_lacks( '<form method="post" action="bodies"' );
+$mech->log_out_ok;
+
$mech->delete_problems_for_body( 2 );
$mech->delete_user( 'dm1@example.org' );
$mech->delete_user( 'sdm1@example.org' );