Bug 17742: Fix t/db_dependent/Patrons.t
commita10e21e3e6564cb1c4b7c4ba414854f06c390d5d
authorJosef Moravec <josef.moravec@gmail.com>
Tue, 6 Dec 2016 21:07:56 +0000 (6 21:07 +0000)
committerMason James <mtj@kohaaloha.com>
Tue, 24 Jan 2017 23:47:57 +0000 (25 12:47 +1300)
treec382ee69a4832fe7d69aa9eb5d94f17699ed1acd
parent783d5ea02e677fe00e8b3f7ad43d801a9a87de38
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: Mason James <mtj@kohaaloha.com>
t/db_dependent/Patrons.t