diff options
Diffstat (limited to 't')
-rw-r--r-- | t/open311/populate-service-list.t | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/t/open311/populate-service-list.t b/t/open311/populate-service-list.t index 313d5c809..1415c7b2a 100644 --- a/t/open311/populate-service-list.t +++ b/t/open311/populate-service-list.t @@ -46,14 +46,16 @@ $bromley->body_areas->find_or_create({ } ); for my $test ( - { cobrand => 'tester', groups => 0 }, - { cobrand => 'testergroups', groups => 1 }, + { desc => 'groups not set for new contacts', cobrand => 'tester', groups => 0, delete => 1 }, + { desc => 'groups set for new contacts', cobrand => 'testergroups', groups => 1, delete => 1}, + { desc => 'groups removed for existing contacts', cobrand => 'tester', groups => 0, delete => 0 }, + { desc => 'groups added for existing contacts', cobrand => 'testergroups', groups => 1, delete => 0}, ) { FixMyStreet::override_config { ALLOWED_COBRANDS => [ $test->{cobrand} ], }, sub { - subtest 'check basic functionality' => sub { - FixMyStreet::DB->resultset('Contact')->search( { body_id => 1 } )->delete(); + subtest 'check basic functionality, ' . $test->{desc} => sub { + FixMyStreet::DB->resultset('Contact')->search( { body_id => 1 } )->delete() if $test->{delete}; my $service_list = get_xml_simple_object( get_standard_xml() ); |