Marc Tobias Metten
1cb87164d9
NominatimTest.php => LibTest.php
2018-03-27 01:38:39 +02:00
Sarah Hoffmann
5c8fbe8186
Merge pull request #941 from mtmail/parameter-parser-tests2
...
PHP tests for ParameterParser
2018-03-06 23:25:20 +01:00
marc tobias
7fd46dcee9
ParameterParser: getSet default value doesnt have to be part of the set
2018-03-06 14:53:23 +01:00
marc tobias
3ef4c4fbe7
ParameterParser: getStringList removes empty strings
2018-03-06 14:51:48 +01:00
marc tobias
47258f40ea
ParameterParser: getFloat with empty string value throws exception
2018-03-06 13:35:27 +01:00
marc tobias
123a3c0347
ParameterParser: getInt with empty string value throws exception
2018-03-06 13:33:19 +01:00
Marc Tobias Metten
d9cd8c6fff
use assertSame to check array order, 0 vs false
2018-02-28 23:22:45 +01:00
Sarah Hoffmann
36fa21d7ce
fix more behave table formatting errors
2018-02-26 23:41:57 +01:00
Sarah Hoffmann
2b66a7a39a
test: fix format of behave table
2018-02-26 20:49:26 +01:00
Marc Tobias Metten
146779340c
use setExpectedException to make sure exceptions are really thrown
2018-02-24 18:14:34 +01:00
Marc Tobias Metten
fd9345cda3
PHP tests for ParameterParser
2018-02-23 01:46:18 +01:00
Marc Tobias Metten
8a615ad969
phpcs fixes. Mostly spacing and single quotes
2018-02-23 01:16:01 +01:00
Edward Betts
7e00a6e2ff
Correct spelling mistakes.
2018-02-18 13:11:35 +00:00
Sarah Hoffmann
c3483747eb
reimport boundaries from scratch when type is changed
...
Fixes #895 .
2018-02-12 21:19:27 +01:00
marc tobias
5042be1b72
parsing coordinates allows second with floats
2018-02-08 17:45:43 +01:00
Sarah Hoffmann
2cf1ff41c0
move nominatim.org links to https
...
Solves #737 .
2018-01-10 23:21:21 +01:00
Sarah Hoffmann
35c7269bac
when linking waterway ways and relations allow all river-like types
...
Fixes #848
2017-12-16 17:00:55 +01:00
Sarah Hoffmann
6c1977b448
replace double-quoting with single quotes where applicable
2017-10-26 21:40:33 +02:00
Marc Tobias Metten
185a983c9d
tests for lib.php closestHouseNumber
2017-10-25 23:58:13 +02:00
Sarah Hoffmann
adbbb1ce02
restrict number of results for reverse queries
...
When given a coordinate off the coast of a large town, the entire
town may end up in the potential results during the reverse query.
Postgres then needs to sort tens of thousands of results before it
can determine the clostest one. Given that the results at such a
large search radius are bound to be imprecise anyway, restrict
the number of results postgres should consider to 1000.
2017-10-25 22:34:29 +02:00
Sarah Hoffmann
f78d094483
fix variable typo when filtering results
...
Fixes #830 and #832 .
2017-10-25 20:25:23 +02:00
Sarah Hoffmann
7eeb79ce67
placex must not return a lookup housenumber
2017-10-25 20:11:51 +02:00
Sarah Hoffmann
1a4506f6ab
use PlaceLookup in search
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
5c18d6865d
adapt unit tests to new Phrase class
2017-10-14 20:45:20 +02:00
Sarah Hoffmann
2c62a8dbbc
adapt phpunit tests to new SearchContext class
2017-10-09 22:11:46 +02:00
Sarah Hoffmann
89c576fbe1
tests: more coverage for all API endpoints
2017-10-04 00:05:34 +02:00
Sarah Hoffmann
218b70fd96
test: remove road-fallback test from db tests
...
This should be tested in the api section.
2017-10-03 14:26:08 +02:00
Sarah Hoffmann
e3323e8888
fix search for postcode via structured query
...
Results from the artifical postcode table were dropped
when reevaluating rank of results.
2017-10-03 12:10:27 +02:00
Sarah Hoffmann
eacaf3489e
more coverage tests for Geocode.php
2017-10-02 23:09:45 +02:00
Sarah Hoffmann
0d4c1e8460
fix viewbox related test
...
Coordinates are no longer specially ordered.
2017-10-02 20:39:33 +02:00
Sarah Hoffmann
28810e6ce0
Merge pull request #802 from mtmail/coordinate-extract-missing-first-minus-sign
...
NearPoint::extractFromQuery - greedy-match optional quote sign
2017-10-01 22:42:24 +02:00
marc tobias
06657b3e10
NearPoint::extractFromQuery - greedy-match optional quote sign
2017-09-21 19:13:50 +02:00
Sarah Hoffmann
81a7ea36db
more API tests (mostly for user errors)
2017-09-19 23:06:31 +02:00
Sarah Hoffmann
af74c037f4
enable coverage also for tests with HTTP errors
2017-09-19 22:42:09 +02:00
marc tobias
e67a6dc321
fix to NearPoint::extractFromQuery handling first minus sign
2017-09-19 12:40:10 +01:00
Sarah Hoffmann
15a215729e
fix handling of near queries with special search
...
Make sure to use the classtype tables with near search and
allow to search for arbitrary key/values (forbidding it
for viewbox searches).
Add tests for near queries.
2017-09-19 00:07:11 +02:00
Sarah Hoffmann
8eb066c692
reinstate key-value amenity search
...
Reenable search by the secret special term [key=value]
matching against the given main tag. Note that for most
cases that works only for tags that also have a special
search table.
2017-09-18 22:09:06 +02:00
Sarah Hoffmann
a0de20e9bc
more API tests for code coverage
...
Also fixes two minor issues related to structured queries.
2017-09-17 23:30:08 +02:00
Sarah Hoffmann
2dbf58d461
improve code coverage documentation
2017-09-17 20:27:06 +02:00
Sarah Hoffmann
9aeb111fba
tests: add new admin scene
2017-08-20 09:29:56 +02:00
Sarah Hoffmann
7ca5219297
fixup tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
e55ac77c94
add simple tests for postcode import
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
f9205caf22
adapt scene generation tool to newest libosmium
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
ec8af1dd40
fix more tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
50c5abf6bb
fix API tests wrt postcodes
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
a44377c7b0
fix postcode-related tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
3fba5e7867
enable code coverage computation for API BDD tests
...
Fixes #505 .
2017-07-17 22:59:13 +02:00
Sarah Hoffmann
9785aff76c
restrict linked places to place nodes
...
Avoids getting the wrong entry when the linked place has
double tagging.
Fixes #573 .
2017-06-07 21:32:02 +02:00
Sarah Hoffmann
5a5691b5b7
force update of linker when linkee is updates
...
Potential name changes need to be added to the linker's
name hstore.
Fixes #170 .
2017-06-06 23:46:44 +02:00
Sarah Hoffmann
9848381a04
remove wip tags from all tests
2017-06-06 22:01:52 +02:00