aboutsummaryrefslogtreecommitdiffstats
path: root/t/Mock
Commit message (Collapse)AuthorAgeLines
* Cobrands can pass `components` to Google Geocoder.Dave Arter2018-02-12-0/+36
| | | | | | This allows more fine grained control over the geocoder search, e.g. to specify the administrative area or town. See the geocoder api docs: https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering
* Ensure Mock::Nominatim JSON is encoded in en-gb localeDave Arter2017-12-05-1/+3
| | | | | This was causing an error in "Test ajax decimal points" in fixamingata.t due to "importance" being encoded with a comma decimal separator.
* Make sure returned geocoder data is UTF-8 decoded.Matthew Somerville2017-11-15-2/+2
| | | | | | It turns out that HTTP::Message (as used by LWP::Simple::get) only decodes text/* and 'XML', not application/json, as used by all the geocoders. Work around this, hopefully in a future-proof way.
* Merge branch 'sms-mssid-error'Matthew Somerville2017-10-16-0/+4
|\
| * Spot errors coming back when sending text.Matthew Somerville2017-10-12-0/+4
| |
* | Merge branch 'bit-of-yaml-tidying'Matthew Somerville2017-10-11-0/+5
|\ \ | |/ |/|
| * Simplify geocode cache read/writing.Matthew Somerville2017-10-10-0/+5
| | | | | | | | Don't think the return data ever needs decoding.
* | Allow ward page to show multiple wards.Matthew Somerville2017-10-06-4/+12
|/ | | | | URLs have to be manually constructed, but specifying multiple ward names separated by "|" will show all those wards and their reports on the map.
* Add ability to confirm reports/updates via text.Matthew Somerville2017-09-30-0/+8
|
* Add ability to log in on /auth via text.Matthew Somerville2017-09-30-0/+20
| | | | A confirmation code is sent via Twilio to be entered on the site.
* area stats page for staff usersStruan Donald2017-09-20-2/+8
| | | | | | | | | Admin page to show some simple summary stats for an area. If the user has been assigned to an area then they will see the stats for that area. Superusers can pick which area they want to view. For mysociety/fixmystreetforcouncils#2
* [Oxfordshire] tests for response time messagesStruan Donald2017-09-11-0/+1
|
* Make sure gettext domain specified in all tests.Matthew Somerville2017-08-25-2/+0
|
* [Bristol] Fix 500 error on /report/newDave Arter2017-08-21-0/+1
|
* [Zurich] Bring all reports in line with upstream.Matthew Somerville2017-08-18-0/+2
| | | | | Update the map/list if the map is zoomed/panned, and make sure the updated HTML list is returned.
* [UK] Stop nearest request with scientific notationMatthew Somerville2017-05-18-1/+39
| | | | | | If the longitude was very close to 0, it was being sent as e.g. 1e-6 in the request to MapIt. Mock out the Bing query so that this can be tested (the closest.t tests were previously always being skipped).
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-0/+14
|
* Upgrade Net::Facebook::Oauth2 to 0.10Dave Arter2017-04-03-3/+3
| | | | | | | | | | 0.09 was communicating with v2.2 of the Facebook API which was switched off on 25th March 2017, so Facebook logins were no longer working. Mock::Facebook was updated to correctly return JSON from /oauth/access_token, to match the behaviour expected since v2.3 of the FB API. Fixes #1681
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-31/+66
|
* Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-0/+3
|
* [Zurich] Fix 500 error when editing superusersDave Arter2016-12-06-0/+6
| | | | | | | | | | | | The Zurich::admin_type function was setting $c->stash->{body}, meaning that when trying to edit a superuser the 'fetch_contacts' function wasn't being called, causing an "Can't call method "all" on an undefined value" error as $c->stash->{live_contacts} wasn't ever being set. Fixed by changing the conditional to simply determine whether fetch_contacts needs to be called. Included a regression test that meant a small addition to the MapItZurich mock.
* Allow user to have an area assigned in adminDave Arter2016-08-22-0/+23
|
* Add Twitter social login.Matthew Somerville2016-04-08-0/+43
|
* Allow zurich tests to run without network.Matthew Somerville2016-03-23-0/+43
|
* Switch final few JSON uses to JSON::MaybeXS.Matthew Somerville2016-02-09-3/+3
|
* Spot media_url in Open311 GetServiceRequestUpdate.Matthew Somerville2016-01-29-0/+18
| | | | Fixes #1315.
* Move test mocks to their own directory.Matthew Somerville2016-01-27-0/+140