From 074152eb5ad3544b894051d52d7ac0354ec642a7 Mon Sep 17 00:00:00 2001 From: Julian Maurice 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