Bugzilla – Attachment 7010 Details for
Bug 6132
System preferences are case sensitive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
unit test
0002-Bug-6132-Add-unit-test-for-system-preferences.patch (text/plain), 989 bytes, created by
Julian Maurice
on 2012-01-02 09:56:59 UTC
(
hide
)
Description:
unit test
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-01-02 09:56:59 UTC
Size:
989 bytes
patch
obsolete
>From 12dcb54b624418639f9a0a38cacaa2b0977c9bcd Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 2 Jan 2012 10:49:28 +0100 >Subject: [PATCH 2/2] Bug 6132: Add unit test for system preferences > >--- > t/db_dependent/sysprefs.t | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > create mode 100755 t/db_dependent/sysprefs.t > >diff --git a/t/db_dependent/sysprefs.t b/t/db_dependent/sysprefs.t >new file mode 100755 >index 0000000..f457391 >--- /dev/null >+++ b/t/db_dependent/sysprefs.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+ >+use Modern::Perl; >+use Test::More tests => 2; >+use C4::Context; >+ >+my $opacheader = C4::Context->preference('opacheader'); >+my $newopacheader = "newopacheader"; >+ >+C4::Context->set_preference('OPACHEADER', $newopacheader); >+ok(C4::Context->preference('opacheader') eq $newopacheader); >+ >+C4::Context->set_preference('opacheader', $opacheader); >+ok(C4::Context->preference('OPACHEADER') eq $opacheader); >-- >1.7.7.3 >
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 6132
:
3822
|
6529
|
6558
|
7009
|
7010
|
7019
|
7020