mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
ParameterParser: getSet default value doesnt have to be part of the set
This commit is contained in:
@@ -128,7 +128,6 @@ class ParameterParserTest extends \PHPUnit_Framework_TestCase
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertSame(false, $oParams->getSet('non-exists', ['foo', 'bar']));
|
$this->assertSame(false, $oParams->getSet('non-exists', ['foo', 'bar']));
|
||||||
// FIXME: unclear if the default value has to be part of the set
|
|
||||||
$this->assertSame('default', $oParams->getSet('non-exists', ['foo', 'bar'], 'default'));
|
$this->assertSame('default', $oParams->getSet('non-exists', ['foo', 'bar'], 'default'));
|
||||||
$this->assertSame('foo', $oParams->getSet('val1', ['foo', 'bar']));
|
$this->assertSame('foo', $oParams->getSet('val1', ['foo', 'bar']));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user