From 99fc3af0a6b13b83ada683cccce025c0c0dbc224 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Mon, 28 Dec 2015 16:00:54 +0100 Subject: [PATCH] Bug 15432: t/db_dependent/Letters.t depends on external data/configuration To test: - Set system preference LetterLog to 'Don't log' - prove t/db_dependent/Letters.t - Result: Fails on test 62 - Successfully sent claim - Apply patch - Test again - Result: Pass OK Signed-off-by: Jonathan Druart Amended patch: removed the bug reference, not needed. Signed-off-by: Kyle M Hall (cherry picked from commit c92b1556ef9250d7e038dce2d083c60415035b95) Signed-off-by: Julian Maurice --- t/db_dependent/Letters.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index 2d8c9bb994..03d474ad9a 100644 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -393,6 +393,9 @@ $bookseller->contacts->[0]->email('testemail@mydomain.com'); C4::Bookseller::ModBookseller($bookseller); $bookseller = Koha::Acquisition::Bookseller->fetch({ id => $booksellerid }); +# Ensure that the preference 'LetterLog' is set to logging +C4::Context->set_preference( 'LetterLog', 'on' ); + { warning_is { $err = SendAlerts( 'claimacquisition', [ $ordernumber ], 'TESTACQCLAIM' ) } -- 2.39.5