Bugzilla – Attachment 30333 Details for
Bug 12398
CAS authentication not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12398: Use mocks to make the test "database independent"
Bug-12398-Use-mocks-to-make-the-test-database-inde.patch (text/plain), 818 bytes, created by
Julian Maurice
on 2014-07-30 12:47:47 UTC
(
hide
)
Description:
Bug 12398: Use mocks to make the test "database independent"
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-07-30 12:47:47 UTC
Size:
818 bytes
patch
obsolete
>From 779defc5971ab93cc99877c01dc4c26b69ec3995 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 30 Jul 2014 14:45:04 +0200 >Subject: [PATCH] Bug 12398: Use mocks to make the test "database independent" > >--- > t/Auth_with_cas.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/Auth_with_cas.t b/t/Auth_with_cas.t >index 0b4a692..449fc1f 100755 >--- a/t/Auth_with_cas.t >+++ b/t/Auth_with_cas.t >@@ -5,8 +5,11 @@ use Test::More tests => 1; > > use CGI; > use C4::Auth_with_cas; >+use t::lib::Mocks; >+ >+my $opac_base_url = 'http://opacbaseurl'; >+t::lib::Mocks::mock_preference('OPACBaseURL', $opac_base_url); > >-my $opac_base_url = C4::Context->preference('OpacBaseURL'); > my $query_string = 'ticket=foo&bar=baz'; > > $ENV{QUERY_STRING} = $query_string; >-- >1.7.10.4
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 12398
:
28756
|
28910
|
30048
|
30332
|
30333
|
30334
|
30378
|
30442
|
30443
|
30454