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
auth.t
auth_authenticate_api_request.t
auth_basic.t
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
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
items.t
libraries.t
oauth.t
patrons.t
patrons_accounts.t Bug 23607: Make /patrons/:patron_id/account staff only 2019-09-27 14:00:48 +01:00
patrons_password.t
stockrotationstage.t