aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-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();