aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/features.t
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2020-09-29 14:23:52 +0200
committerMarius Halden <marius.h@lden.org>2020-09-29 14:23:52 +0200
commita27ce1524d801d2742a2bdb6ec1da45126d64353 (patch)
tree64123c4e17dc1776aa0a7cd65ee01d49d3e7d978 /t/cobrand/features.t
parent377bd96aab7cad3434185c30eb908c9da447fe40 (diff)
parent2773c60226b9370fe8ee00f7b205b571bb87c3b5 (diff)
Merge tag 'v3.0.1' into fiksgatami-dev
Diffstat (limited to 't/cobrand/features.t')
-rw-r--r--t/cobrand/features.t20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/cobrand/features.t b/t/cobrand/features.t
new file mode 100644
index 000000000..45ea6336d
--- /dev/null
+++ b/t/cobrand/features.t
@@ -0,0 +1,20 @@
+use FixMyStreet::Test;
+use FixMyStreet::Cobrand;
+
+FixMyStreet::override_config {
+ ALLOWED_COBRANDS => ['bromley'],
+ COBRAND_FEATURES => {
+ foo => { tester => 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();