Koha-clms/t/Koha
Tomas Cohen Arazi f1163dba9d Bug 19410: Move build_query_params_from_api into a helper
This patch creates the 'build_query_params' helper, instead of the
original function in Koha::Objects.

Unit tests are removed for Koha::Objects::_build_query_params_from_api and
written for the helper plugin.

The objects.search helper gets a call to build_query_params added. Tests for it
updated to match this behaviour change.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/Koha/REST/Plugin/Query.t \
          t/db_dependent/Koha/Objects.t \
          t/db_dependent/Koha/REST/Plugin/Objects.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Lari Taskula <lari.taskula@jns.fi>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-11 17:46:59 -03:00
..
Plugin Bug 19173: Make OPAC online payments pluggable 2017-09-19 14:15:52 -03:00
REST/Plugin Bug 19410: Move build_query_params_from_api into a helper 2017-12-11 17:46:59 -03:00
SearchEngine Bug 19542: Add a check for ES configuration health 2017-12-11 14:30:42 -03:00
Util Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Config.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
ItemType.t Bug 12748: (QA followup) make new tests pass 2016-04-26 20:20:14 +00:00