]> git.koha-community.org Git - koha.git/commit
Bug 17742: Fix t/db_dependent/Patrons.t
authorJosef Moravec <josef.moravec@gmail.com>
Tue, 6 Dec 2016 21:07:56 +0000 (21:07 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Wed, 4 Jan 2017 07:26:17 +0000 (08:26 +0100)
commitff6a1f666f575f02258bf42b539536f79057046d
treececc5aeb68cc6ced63ebb230d90764a48c1f10e5
parent680b807653de19255b4df2c9ca3f4170a0217422
Bug 17742: Fix t/db_dependent/Patrons.t

Moves the getting of testing date for updated_on just after the storing
the test patron data to make the gap between generating data and now
date as short as possible

Fixes test 7

Use Koha::Database instead of C4::Context->dbh

Test plan
1. prove t/db_dependent/Patrons.t
2. read the diff

NOTE: Only minor improvement could be using test builder to
      generate the category and branch codes, rather than assume
      data exists. However, that is beyond scope of this bug.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 5c2618d653f6a8fe4b220f1ca986c8d6c58264e3)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/Patrons.t