aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-06-12 11:45:18 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-12 11:45:18 +0100
commitbc7b2c5b5538ab9e59a2955a87c75b2156b7ec63 (patch)
treeccf91ff99bbd25539e551f539204b80fd785627b /t/cobrand
parenta803781aee299f9cfeb4551ee398701cc053a7a5 (diff)
parent162351e8f31779ef216b0e8a6ab0332590adecc9 (diff)
Merge branch 'uk-to-features'
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/bexley.t16
1 files changed, 12 insertions, 4 deletions
diff --git a/t/cobrand/bexley.t b/t/cobrand/bexley.t
index e6f400e3d..2f74ac03a 100644
--- a/t/cobrand/bexley.t
+++ b/t/cobrand/bexley.t
@@ -12,10 +12,18 @@ $ukc->mock('lookup_site_code', sub {
return "Road ID";
});
-my $cobrand = FixMyStreet::Cobrand::Bexley->new;
-like $cobrand->contact_email, qr/bexley/;
-is $cobrand->on_map_default_status, 'open';
-is_deeply $cobrand->disambiguate_location->{bounds}, [ 51.408484, 0.074653, 51.515542, 0.2234676 ];
+FixMyStreet::override_config {
+ COBRAND_FEATURES => {
+ contact_email => {
+ bexley => 'foo@bexley',
+ }
+ },
+}, sub {
+ my $cobrand = FixMyStreet::Cobrand::Bexley->new;
+ like $cobrand->contact_email, qr/bexley/;
+ is $cobrand->on_map_default_status, 'open';
+ is_deeply $cobrand->disambiguate_location->{bounds}, [ 51.408484, 0.074653, 51.515542, 0.2234676 ];
+};
my $mech = FixMyStreet::TestMech->new;