diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-14 12:11:13 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-15 00:11:06 +0000 |
commit | ff06783c6dc50321100a54b4d4a624fde2212689 (patch) | |
tree | 38d7f914f841a6ba8ea3225bae3cacbabc80dbf9 /t/app/controller/admin.t | |
parent | bb356c880412db8bad655e081ad6d68f25ae3ff7 (diff) |
Make from_body a foreign key.
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index a43a875c3..d759c1238 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -845,6 +845,8 @@ for my $test ( }; } +$mech->create_body_ok(2504, 'Westminster City Council'); + for my $test ( { desc => 'user is problem owner', @@ -1082,6 +1084,8 @@ subtest 'show flagged entries' => sub { $mech->content_contains( $user->email ); }; +$mech->create_body_ok(2509, 'Haringey Borough Council'); + subtest 'user search' => sub { $mech->get_ok('/admin/users'); $mech->get_ok('/admin/users?search=' . $user->name); @@ -1115,7 +1119,6 @@ is $log_entries->count, 0, 'no admin log entries'; $user->flagged( 0 ); $user->update; -$mech->create_body_ok(2509, 'Haringey Borough Council'); $mech->create_body_ok(2607, 'Southend-on-Sea Borough Council'); for my $test ( |