]> git.koha-community.org Git - koha.git/commit
Bug 28585: (QA follow-up) Fix object.t
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 21 Oct 2021 15:08:19 +0000 (16:08 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Oct 2021 12:05:35 +0000 (08:05 -0400)
commit76d66cc9ada7a33eec71eee02f40754f54ac9bad
tree325381a76b6ad8584471d5e44a2b76c55943416e
parent0266164580ff3f1dc1fdf1d2780fcec8c01bdc53
Bug 28585: (QA follow-up) Fix object.t

Object.t was still testing for the return of DateTime objects from
attributes_from_api. I checked all calls to attrbutes_from_api for
reliance of DateTime objects and confirmed they all get passed into
search calls and thus are better served as SQL formatted strings.

I then converted the test to check that the rfc3339 formatted dates
passed in were converted to strings appropriate for feeding into SQL
where statements instead.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
JD amended patch:
  FAIL   spelling
    formated ==> formatted

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Koha/Object.t