Bugzilla – Attachment 91176 Details for
Bug 20635
Write authentication tests with Test::Mojo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20635: Make sure CGI::Compile is loaded first in tests
Bug-20635-Make-sure-CGICompile-is-loaded-first-in-.patch (text/plain), 1.19 KB, created by
Julian Maurice
on 2019-07-02 08:31:06 UTC
(
hide
)
Description:
Bug 20635: Make sure CGI::Compile is loaded first in tests
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2019-07-02 08:31:06 UTC
Size:
1.19 KB
patch
obsolete
>From 074152eb5ad3544b894051d52d7ac0354ec642a7 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 2 Jul 2019 10:24:14 +0200 >Subject: [PATCH] Bug 20635: Make sure CGI::Compile is loaded first in tests > >CGI::Compile needs to be loaded before Koha modules for it to work >normally. >Even if not directly needed in test files, we need to 'use' it >explicitely so that it loads before Koha modules. >--- > t/integration/auth/cas.t | 2 ++ > t/integration/auth/password.t | 2 ++ > 2 files changed, 4 insertions(+) > >diff --git a/t/integration/auth/cas.t b/t/integration/auth/cas.t >index aa4e9fceba..faf382a2d2 100644 >--- a/t/integration/auth/cas.t >+++ b/t/integration/auth/cas.t >@@ -6,6 +6,8 @@ use Test::More tests => 2; > use Test::Mojo; > use Test::MockModule; > >+use CGI::Compile; >+ > use Authen::CAS::Client; > use Authen::CAS::Client::Response; > >diff --git a/t/integration/auth/password.t b/t/integration/auth/password.t >index aa98b6e9bb..b6d6232cbd 100755 >--- a/t/integration/auth/password.t >+++ b/t/integration/auth/password.t >@@ -5,6 +5,8 @@ use Modern::Perl; > use Test::More tests => 2; > use Test::Mojo; > >+use CGI::Compile; >+ > use t::lib::TestBuilder; > use t::lib::Mocks; > >-- >2.20.1
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 20635
:
74709
| 91176