From 89a223b708ed99274bcc7392b975e59edaa76dcb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Dec 2015 17:11:45 +0000 Subject: [PATCH] Bug 15446: Add tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc VĂ©ron --- t/db_dependent/Context.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/db_dependent/Context.t b/t/db_dependent/Context.t index 8c0abfd..319a299 100755 --- a/t/db_dependent/Context.t +++ b/t/db_dependent/Context.t @@ -119,6 +119,11 @@ is($oConnection->option('async'), 1, "ZOOM connection is asynchronous"); $silly_preference->delete(); +# AutoEmailOpacUser should be a YesNo pref +C4::Context->set_preference('AutoEmailOpacUser', ''); +my $yesno_pref = Koha::Config::SysPrefs->find('AutoEmailOpacUser'); +is( $yesno_pref->value(), 0, 'set_preference should have set the value to 0, instead of an empty string' ); + done_testing(); sub TransformVersionToNum { -- 1.7.10.4