public function DisableLoginTest::testAccessDeniedWithDisabledLoginEnabled in Disable Login Page 1.0.x
Case when disable login is enabled.
User should get 403 when no key-querystring is provided. User should get 403 when correct key wrong querystring is provided. User should get 403 when wrong key correct querystring is provided. User should get 403 when wrong key wrong querystring is provided. User should get 200 when correct key-querystring is provided.
File
- tests/
src/ Functional/ DisableLoginTest.php, line 54
Class
- DisableLoginTest
- Test enabling and disabling of login page.
Namespace
Drupal\Tests\disable_login\FunctionalCode
public function testAccessDeniedWithDisabledLoginEnabled() {
$this
->assertLoginDisabledResponse(TRUE);
}