diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-09-11 18:58:31 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-14 11:29:59 +0100 |
commit | a92bb19ebd9e0209373ad07a513b7460d65a3f64 (patch) | |
tree | 66dc6aa0ab7b8835cfe710b6a5fb0637ad2c727c | |
parent | 07891b75a6973f4503789d6a231ca34c984c9a15 (diff) |
[Westminster] Test warnfixes.
-rw-r--r-- | t/app/controller/auth_social.t | 9 | ||||
-rw-r--r-- | t/cobrand/westminster.t | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/t/app/controller/auth_social.t b/t/app/controller/auth_social.t index f5f64248c..d0ee4e148 100644 --- a/t/app/controller/auth_social.t +++ b/t/app/controller/auth_social.t @@ -56,9 +56,12 @@ for my $test ( }, { type => 'oidc', config => { - ALLOWED_COBRANDS => [ { westminster => '.' } ], + ALLOWED_COBRANDS => 'westminster', MAPIT_URL => 'http://mapit.uk/', COBRAND_FEATURES => { + anonymous_account => { + westminster => 'test', + }, oidc_login => { westminster => { client_id => 'example_client_id', @@ -385,6 +388,4 @@ for my $tw_state ( 'refused', 'existing UID', 'no email' ) { }; -END { - done_testing(); -} +done_testing(); diff --git a/t/cobrand/westminster.t b/t/cobrand/westminster.t index 303401de6..84def0917 100644 --- a/t/cobrand/westminster.t +++ b/t/cobrand/westminster.t @@ -3,6 +3,10 @@ use Test::MockModule; use FixMyStreet::TestMech; use FixMyStreet::Script::Reports; +# disable info logs for this test run +FixMyStreet::App->log->disable('info'); +END { FixMyStreet::App->log->enable('info'); } + ok( my $mech = FixMyStreet::TestMech->new, 'Created mech object' ); my $cobrand = Test::MockModule->new('FixMyStreet::Cobrand::Westminster'); |