]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Fri, 5 Mar 2021 21:31:48 +0000 (21:31 +0000)
commit3518c975c069e7fc0a3c666bb8edd15a22ced370
treebecdb25635017b84c4f4687e633c47db878c3808
parent5f51145efac7d13ea66d3305b014d40e1fff6ba4
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>
(cherry picked from commit d2a43a77aabd9cf885d6dc9b72458a00bbc28ac9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 5191ed911dbbe81c0a262646b58b9a6b6143acad)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
t/db_dependent/Koha/REST/Plugin/Objects.t