]> git.koha-community.org Git - koha.git/commit
Bug 29403: Fix api/v1/patrons.t
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 3 Nov 2021 13:41:44 +0000 (13:41 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 15 Dec 2021 22:14:45 +0000 (12:14 -1000)
commitbf9107074d77ee0e619849f8857d5d5056244560
tree9622f77fd6547588645ec9af2f1194da3eb71e8a
parent62652115dc2b9263c9ac1d9067fdab240f96f9a1
Bug 29403: Fix api/v1/patrons.t

t::lib::Dates::compare expects either correct DateTime objects, or a
system formatted datetime strings to be passed.. but as we're testing
the API, we are consistently using RFC3339 strings for date-times and
ISO8601 strings for dates.  We need to therefore pre-process the strings
into DateTime objects for the comparison.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/api/v1/patrons.t