aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-23 10:52:16 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-28 14:37:11 +0100
commit4b3a05395eb18dc6c58be124445ea40f33502e05 (patch)
tree64111f51948bb085e1bf81f10daabea141675e55 /t/cobrand
parent4ebaa1cc000bc096ebaa41b5c12da74c69692915 (diff)
[UK] Move suggest_duplicates to configuration.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/features.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/cobrand/features.t b/t/cobrand/features.t
index 4b9190d55..45ea6336d 100644
--- a/t/cobrand/features.t
+++ b/t/cobrand/features.t
@@ -2,15 +2,19 @@ use FixMyStreet::Test;
use FixMyStreet::Cobrand;
FixMyStreet::override_config {
+ ALLOWED_COBRANDS => ['bromley'],
COBRAND_FEATURES => {
foo => { tester => 1 },
- bar => { default => 1 }
+ bar => { default => 1 },
+ suggest_duplicates => { bromley => 1 },
}
}, sub {
my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker('default')->new;
+ my $bromley = FixMyStreet::Cobrand->get_class_for_moniker('bromley')->new;
is $cobrand->feature('foo'), undef;
is $cobrand->feature('bar'), 1;
+ is $bromley->suggest_duplicates, 1;
};
done_testing();