Bug 15446: Add tests

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2015-12-30 17:11:45 +00:00 committed by Jesse Weaver
parent 71d4942c30
commit bd7e79940d
1 changed files with 5 additions and 0 deletions

View File

@ -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 {