]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Oct 2021 12:06:27 +0000 (14:06 +0200)
commitc1eb935d0acb88ca0cf824c4e79176e17fa4511b
tree7016d18418710bd2d6bcffd18978d5298009516e
parent538ab104f3287835f40ad496b0c284e675302c39
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>
t/db_dependent/Koha/Object.t