Bug 13933: Fix t/DateUtils.t without DB
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 31 Mar 2015 07:56:56 +0000 (09:56 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 1 Apr 2015 16:10:16 +0000 (13:10 -0300)
commit85a0f6a42f64227021986ee95a8b19e0eed5702d
tree42f69586eab10615b99126284e0da0bb518b90fc
parentc3c404a67b9b0faf88d3ee259dbf8c91ad401809
Bug 13933: Fix t/DateUtils.t without DB

If the mysql server is not running, the DateUtils.t tests failed.
This is caused by

commit dd9f456ab7c2f0e66173a6feb7df2a38604c82cd
    Bug 13601: Add tests to highlight the problems with
    DateTime::Format::DateParse

The pref dateformat and TimeFormat were retrieved before the mock.
Before bug 13601, the complete preference method was mocked, that's why
the error did not appear.

Test plan:
  sudo service mysql stop
  prove t/DateUtils.t
should be happy

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/DateUtils.t