]> git.koha-community.org Git - koha.git/commit
Bug 27680: Add tests for various ways of passing multi-params
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 Feb 2021 14:05:13 +0000 (14:05 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Mar 2021 12:50:03 +0000 (13:50 +0100)
commitd2a43a77aabd9cf885d6dc9b72458a00bbc28ac9
tree1f9b638acea4503251d08e3ad9503adf646d8b43
parentfa1671aba529e55f124eb759f3b09e237a7282fe
Bug 27680: Add tests for various ways of passing multi-params

This patch adds unit test to increase the coverage of parameter that
accept multiple values.  There are a number of different ways end users
can send such parameters and we should test to ensure we are recieving
the correct option.

Options
`?param1=this&param1=that` - traditional multiple pass params
`?param1[]=this&param1[]=that` - php multiple pass params
`?param1=this,that` - comma delimited list param
`?param1=this|that` - pipe delimited list param

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/REST/Plugin/Objects.t