Test plan:
1. prove t/db_dependent/Auth_with_cas.t => FAIL
2. Apply patch
3. prove t/db_dependent/Auth_with_cas.t => SUCCESS
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
my %preferences;
sub mock_preference {
- my $context = new Test::MockModule('C4::Context');
my ( $pref, $value ) = @_;
- $preferences{$pref} = $value;
+
+ $preferences{lc($pref)} = $value;
+
+ my $context = new Test::MockModule('C4::Context');
$context->mock('preference', sub {
my ( $self, $pref ) = @_;
+ $pref = lc($pref);
if ( exists $preferences{$pref} ) {
return $preferences{$pref}
} else {