blob: c8a16ea9a0894fc0a2c3f7487b64d098944581da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use FixMyStreet::Test;
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_area_id = $cobrand->council_area_id;
is $council_area_id, $id, "council_area_id for $m";
}
};
done_testing;
|