Koha-clms/t/Koha
Tomas Cohen Arazi 9a4910812f Bug 26143: Regression tests
This patch introduces tests for the per_page=-1 handling use case. From
now on per_page=-1 means 'all resources'.

On writing this I noticed that we always paginate results no matter
what, but there was a weird condition under which on pagination headers
were sent back to the API consumer. This is highlighted in the precedent
patch, which is not the -1 situation this one tries to tackle.

Both pagination and searching are broken with per_page=-1, which is a
standard, and we actually didn't explicitly set a way to request all
resources.

To verify this:
1. Apply the previous tests patch and this one
2. Run:
   $ kshell
  k$ prove t/Koha/REST/Plugin/Pagination.t \
           t/db_dependent/Koha/REST/Plugin/Objects.t
=> FAIL: Things are damn broken

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d20bc39d75)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-08-13 18:11:56 +00:00
..
Authority
…
I18N/po/xx_XX/LC_MESSAGES Bug 15395: Allow correct handling of plural translation 2018-11-08 15:55:50 +00:00
Middleware Bug 25950: Remove <client> in X-Forwarded-For from proxy tests 2020-07-24 21:22:17 +00:00
Plugins Bug 23050: (QA follow-up) Add Koha::Plugins::Tab class 2019-11-05 08:13:59 +00:00
REST/Plugin Bug 26143: Regression tests 2020-08-13 18:11:56 +00:00
SearchEngine Bug 24823: Remove unused parameters 2020-05-12 11:43:30 +01:00
Util Bug 21560: Unit test for Koha::Util::OpenDocument 2019-03-15 12:02:46 +00:00
Config.t
…
Exceptions.t Bug 25423: (follow-up) Fix wrong test 2020-05-08 16:45:52 -03:00
I18N.t Bug 15395: Allow correct handling of plural translation 2018-11-08 15:55:50 +00:00
ItemType.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
RDF.t Bug 18586: Create module to mint RDF subject URIs 2018-08-09 12:11:16 +00:00
Script.t Bug 25109: Add 'wait' tests 2020-04-14 16:57:01 +01:00
Script_cron.t Bug 17845: Remove some missed references to branchprinter 2020-03-10 15:18:28 +00:00
Z3950responder.t Bug 13937: Fix issues found in QA 2019-10-08 14:39:50 +01:00
sleep.pl Bug 25109: Add ->new and ->lock_exec to Koha::Script 2020-04-14 16:56:57 +01:00
wait.pl Bug 25109: Add 'wait' tests 2020-04-14 16:57:01 +01:00