From a297d2ac159eada95bca46e4f106ecd7d14891c1 Mon Sep 17 00:00:00 2001
From: efalcy <efalcy@afi-sa.fr>
Date: Tue, 30 Sep 2014 15:31:37 +0200
Subject: [PATCH] dev #16260 : fix test failure

---
 .../modules/opac/controllers/AuthControllerTest.php    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/application/modules/opac/controllers/AuthControllerTest.php b/tests/application/modules/opac/controllers/AuthControllerTest.php
index cb3d4614673..3bc29ed2a0c 100644
--- a/tests/application/modules/opac/controllers/AuthControllerTest.php
+++ b/tests/application/modules/opac/controllers/AuthControllerTest.php
@@ -923,8 +923,10 @@ class AuthControllerPostSimpleSuccessfulWithRedirectTest extends AuthControllerP
 
 class AuthControllerPostWrongUserFromLecturaClientTest extends AbstractControllerTestCase {
 
+	protected $server_host;
 	public function setUp() {
 		parent::setUp();
+		$this->server_host = $_SERVER['HTTP_HOST'];
 		$_SERVER['HTTPS']='on';
 		$_SERVER['HTTP_HOST'] = 'test.webuser.lectura.fr';
 
@@ -937,6 +939,14 @@ class AuthControllerPostWrongUserFromLecturaClientTest extends AbstractControlle
 
 	}
 
+
+	public function tearDown() {
+		unset($_SERVER['HTTPS']);
+		$_SERVER['HTTP_HOST'] = $this->server_host;
+		parent::tearDown();
+	}
+
+
 	/** @test */
 	public function responseShouldContainsError() {
 		$this->assertContains('error', $this->_response->getBody());
-- 
GitLab