aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311/endpoint/Endpoint2.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-08-26 15:05:30 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-08-26 15:05:30 +0100
commit0e45fa27e4bc857f61b71f6c121a61e08e54cb6a (patch)
tree7e83c50825819b60a9a73f16c4d4f0a4ff247650 /t/open311/endpoint/Endpoint2.pm
parentc1178ea85d1879d6533ac09e2a3c813441554b43 (diff)
parenta09c61c807d8d6b50227c9d8aa687f1eb22bad00 (diff)
Merge branch 'stevenage-open311'
Diffstat (limited to 't/open311/endpoint/Endpoint2.pm')
-rw-r--r--t/open311/endpoint/Endpoint2.pm25
1 files changed, 0 insertions, 25 deletions
diff --git a/t/open311/endpoint/Endpoint2.pm b/t/open311/endpoint/Endpoint2.pm
deleted file mode 100644
index 664a7f3d6..000000000
--- a/t/open311/endpoint/Endpoint2.pm
+++ /dev/null
@@ -1,25 +0,0 @@
-package t::open311::endpoint::Endpoint2;
-use Web::Simple;
-extends 't::open311::endpoint::Endpoint1';
-with 'Open311::Endpoint::Role::mySociety';
-
-sub get_service_request_updates {
- my ($self, $args) = @_;
-
- my $start_date = $self->maybe_inflate_datetime($args->{start_date});
- my $end_date = $self->maybe_inflate_datetime($args->{end_date});
-
- my @requests = $self->filter_requests( sub { $_[0]->has_updates } );
-
- return map {
- $_->filter_updates( sub {
- my $update = shift;
- my $updated_datetime = $update->updated_datetime or return;
- if ($start_date) { return unless $updated_datetime >= $start_date }
- if ($end_date) { return unless $updated_datetime <= $end_date }
- return 1;
- });
- } @requests;
-}
-
-1;