Koha/t/db_dependent/api/v1
Tomas Cohen Arazi ecf030b798
Bug 23843: Make funds endpoint tests more robust
Now that we use ->to_api all the object attributes are returned, so the
original tests that didn't follow the FKs would pass, and now they
don't. If there is no budget linked to the fund, it will return undef,
which is not accepted on the API (though it accepts not returning the
attribute).

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/acquisitions_funds.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-23 18:02:47 +01:00
..
acquisitions_funds.t Bug 23843: Make funds endpoint tests more robust 2019-10-23 18:02:47 +01:00
acquisitions_vendors.t Bug 18120: /acquisitions/vendors unit tests 2017-09-29 17:13:13 -03:00
auth.t Bug 22061: Add a /public namespace that can be switched on/off 2019-01-28 15:45:54 +00:00
auth_authenticate_api_request.t Bug 22071: Regression tests 2019-01-04 03:13:39 +00:00
auth_basic.t Bug 22132: (QA follow-up) set_password now expects a hashref 2019-01-30 18:57:18 +00:00
biblios.t Bug 23677: Unit tests 2019-10-08 14:33:34 +01:00
checkouts.t Bug 17005: Test for checked_in parameter 2019-10-08 14:33:39 +01:00
cities.t Bug 22227: Make GET /cities staff only 2019-02-15 18:42:46 +00:00
clubs_holds.t Bug 19618: Add tests 2019-10-01 08:05:58 +01:00
holds.t Bug 23710: (follow-up) Add tests for new features in Koha::REST::V!::Holds::add and return error when hold date in future is not allowed and it is passed as parameter 2019-10-07 13:00:17 +01:00
illrequests.t Bug 18589: (follow-up) Add borrowernumber test 2019-03-22 20:21:49 +00:00
items.t Bug 16825: Add API route for getting an item 2019-09-12 16:41:09 +01:00
libraries.t Bug 16497: Refactor tests using BASIC authentication 2019-02-19 13:52:14 +00:00
oauth.t Bug 23146: Unit tests 2019-06-24 16:05:24 +01:00
patrons.t Bug 23584: Add the controller method and tests 2019-09-23 10:52:50 +01:00
patrons_accounts.t Bug 23607: Make /patrons/:patron_id/account staff only 2019-09-27 14:00:48 +01:00
patrons_password.t Bug 22483: (follow-up) Fix wrong tests higlighted by bug 2019-03-08 15:26:05 -03:00
stockrotationstage.t Bug 11897: Use 'stockrotation' permission for the endpoint 2018-10-09 15:46:06 +00:00