aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/app/controller/report_new.t3
-rw-r--r--t/app/model/problem.t4
2 files changed, 5 insertions, 2 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 72256f645..88236a1c3 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -875,8 +875,7 @@ for my $test (
{
subtest $test->{desc} => sub {
if ( $test->{host} =~ /bromley/ && !FixMyStreet::Cobrand->exists('bromley') ) {
- ok 1, 'Skipping Bromley tests without Bromley cobrand';
- return;
+ plan skip_all => 'Skipping Bromley tests without Bromley cobrand';
}
$mech->host( $test->{host} );
diff --git a/t/app/model/problem.t b/t/app/model/problem.t
index 8c3ea10c5..8aabce4f7 100644
--- a/t/app/model/problem.t
+++ b/t/app/model/problem.t
@@ -491,6 +491,10 @@ foreach my $test ( {
}
)->update( { whensent => \'ms_current_timestamp()' } );
+ if ( $test->{cobrand} && $test->{cobrand} =~ /lichfielddc/ && !FixMyStreet::Cobrand->exists('lichfielddc') ) {
+ plan skip_all => 'Skipping Lichfield tests without Lichfield cobrand';
+ }
+
$problem->discard_changes;
$problem->update( {
council => $test->{ council },