aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-24 19:08:51 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-28 14:37:11 +0100
commit4ebaa1cc000bc096ebaa41b5c12da74c69692915 (patch)
tree6919d12aefe1b3e6cff5199db240fb1f3c53bacd /t/cobrand
parentde66ef715820b3361a7124b0046cb9708c097d48 (diff)
Add feature cobrand helper function.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/features.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/cobrand/features.t b/t/cobrand/features.t
new file mode 100644
index 000000000..4b9190d55
--- /dev/null
+++ b/t/cobrand/features.t
@@ -0,0 +1,16 @@
+use FixMyStreet::Test;
+use FixMyStreet::Cobrand;
+
+FixMyStreet::override_config {
+ COBRAND_FEATURES => {
+ foo => { tester => 1 },
+ bar => { default => 1 }
+ }
+}, sub {
+ my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker('default')->new;
+
+ is $cobrand->feature('foo'), undef;
+ is $cobrand->feature('bar'), 1;
+};
+
+done_testing();