diff options
Diffstat (limited to 't/cobrand/two_tier.t')
-rw-r--r-- | t/cobrand/two_tier.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/t/cobrand/two_tier.t b/t/cobrand/two_tier.t new file mode 100644 index 000000000..97bbccc01 --- /dev/null +++ b/t/cobrand/two_tier.t @@ -0,0 +1,27 @@ +use strict; +use warnings; +use Test::More; + +use FixMyStreet; +use FixMyStreet::Cobrand; + +my @cobrands = ( + [ hart => 2333 ], + [ oxfordshire => 2237 ], + [ stevenage => 2347 ], + [ warwickshire => 2243 ], +); + +FixMyStreet::override_config { + ALLOWED_COBRANDS => [ map $_->[0], @cobrands ], +}, sub { + + for my $c (@cobrands) { + my ($m, $id) = @$c; + my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($m); + my $council_id = $cobrand->council_id; + is $council_id, $id, "council_id for $m"; + } +}; + +done_testing; |