Skip to content

Commit

Permalink
[Camden] Adds trees integration
Browse files Browse the repository at this point in the history
Adds the integration for the Confirm Trees integration
mysociety/societyworks#4298
  • Loading branch information
MorayMySoc committed Jun 10, 2024
1 parent a271eaa commit b600c8a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions perllib/Open311/Endpoint/Integration/UK/Camden/ConfirmTrees.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package Open311::Endpoint::Integration::UK::Camden::ConfirmTrees;

use Moo;
extends 'Open311::Endpoint::Integration::Confirm';

use Open311::Endpoint::Service::UKCouncil::Confirm;

has service_class => (
is => 'ro',
default => 'Open311::Endpoint::Service::UKCouncil::Confirm'
);

around BUILDARGS => sub {
my ($orig, $class, %args) = @_;
$args{jurisdiction_id} = 'camden_confirm_trees';
return $class->$orig(%args);
};

1;
1 change: 1 addition & 0 deletions t/open311/endpoint/uk.t
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ test_multi(1, 'Open311::Endpoint::Integration::UK::CentralBedfordshire',

test_multi(1, 'Open311::Endpoint::Integration::UK::Camden',
'Open311::Endpoint::Integration::UK::Camden::Symology' => 'camden_symology',
'Open311::Endpoint::Integration::UK::Camden::ConfirmTrees' => 'camden_confirm_trees',
);

done_testing;
Expand Down

0 comments on commit b600c8a

Please sign in to comment.