]> 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>
Fri, 28 Jan 2022 21:09:06 +0000 (11:09 -1000)
commitdf34a4d53fd6a6a6e1fa0f0e9ff2ed3f72c73e9a
tree39e326b49fcedc12c7963594bf8f6112ab35b4d2
parent9b3a443477953fc253dc78feac5d03ce508627c7
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: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/api/v1/patrons.t