From 9a7b8a52c26321163c90ccb20caccfc8a331ba56 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Thu, 4 Oct 2018 11:50:35 +0200
Subject: [PATCH] Fix tests after disabling consent-module

---
 tests/modules/consent/lib/Auth/Process/ConsentTest.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/modules/consent/lib/Auth/Process/ConsentTest.php b/tests/modules/consent/lib/Auth/Process/ConsentTest.php
index 1e06862d3..cf8e0a098 100644
--- a/tests/modules/consent/lib/Auth/Process/ConsentTest.php
+++ b/tests/modules/consent/lib/Auth/Process/ConsentTest.php
@@ -15,7 +15,8 @@ class ConsentTest extends TestCase
 {
     public function setUp()
     {
-        $this->config = Configuration::loadFromArray(array(), '[ARRAY]', 'simplesaml');
+        $this->config = Configuration::loadFromArray(array('module.enable' => array('consent' => true)), '[ARRAY]', 'simplesaml');
+        \SimpleSAML_Configuration::setPreLoadedConfig($this->config, 'config.php');
     }
 
     /**
-- 
GitLab