aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/councils.t
blob: 8fb10cfbefefd2b2c0ef4c0ce38a3b42bbbae641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;
use Test::More;

use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;

foreach my $council (qw/southampton reading bromley/) {
    SKIP: {
        skip( "Need '$council' in ALLOWED_COBRANDS config", 3 )
            unless FixMyStreet::Cobrand->exists($council);
        ok $mech->host("$council.fixmystreet.com"), "change host to $council";
        $mech->get_ok('/');
        $mech->content_like( qr/$council/i );
    }
}

done_testing();