Bugzilla – Attachment 70042 Details for
Bug 19788
Case sensitivity is not preserved when creating local system preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19788: Add a test
Bug-19788-Add-a-test.patch (text/plain), 1.11 KB, created by
Kyle M Hall (khall)
on 2017-12-21 14:56:49 UTC
(
hide
)
Description:
Bug 19788: Add a test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-12-21 14:56:49 UTC
Size:
1.11 KB
patch
obsolete
>From dfdfa3c99feed129747c7a2a6bccc5aefcc80382 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 19 Dec 2017 11:56:07 -0300 >Subject: [PATCH] Bug 19788: Add a test > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Context.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Context.t b/t/db_dependent/Context.t >index 5a75acd..cb7c94f 100755 >--- a/t/db_dependent/Context.t >+++ b/t/db_dependent/Context.t >@@ -1,7 +1,6 @@ > #!/usr/bin/perl > >-use strict; >-use warnings; >+use Modern::Perl; > > use Test::More; > use Test::MockModule; >@@ -79,6 +78,7 @@ $schema->storage->debugfh( $trace ); > > C4::Context->set_preference('SillyPreference', 'thing1'); > my $silly_preference = Koha::Config::SysPrefs->find('SillyPreference'); >+is( $silly_preference->variable, 'SillyPreference', 'set_preference should have kept the case sensitivity' ); > > my $pref = C4::Context->preference("SillyPreference"); > is(C4::Context->preference("SillyPreference"), 'thing1', "Retrieved syspref (value='thing1') successfully with default behavior"); >-- >2.10.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19788
:
69675
|
69676
|
69912
|
70041
| 70042