Skip to content
Snippets Groups Projects

Hotline 6.55

Merged Ghislain Loas requested to merge hotline_6.55 into hotline_#17249_auto_open_vertical_menu
Viewing commit 0b4c2b11
Show latest version
1 file
+ 10
0
Preferences
Compare changes
@@ -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());