Skip to content
Snippets Groups Projects
Commit 0b4c2b11 authored by efalcy's avatar efalcy
Browse files

dev #16260 : fix test failure

parent 46c0c84d
Branches
Tags
6 merge requests!529Hotline 6.56,!512Master,!500Hotline 6.55,!498Master,!496Hotline 6.54,!495Hotline 16499 karvi
......@@ -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());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment