]> git.koha-community.org Git - koha.git/commit
Bug 23038: Hide expected warnings from tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 3 Jun 2019 16:40:31 +0000 (11:40 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 15 Oct 2019 13:14:01 +0000 (14:14 +0100)
commit04ec6627e2d40a9bb34f7b95e4a3276b04a5fee1
tree0acba99c7c25f115e76487dc5a46491e2eb0b79b
parent40380339f9bdd0b2a056c820bc61a3cdc8545df3
Bug 23038: Hide expected warnings from tests

When tests are ran, there are 2 warnings that are expected and raised by
DBI.
As they are expected they must be correctly caught and not displayed.

We could have reconnect with PrintError turned off, but then reconnect
with it on.

Test plan:
% prove t/db_dependent/Circulation/MarkIssueReturned.t t/db_dependent/Suggestions.t
Must not display DBI warnings

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Circulation/MarkIssueReturned.t
t/db_dependent/Suggestions.t