protected function ChangeAccessDeniedMessageTest::setUp in Redirect 403 to User Login 8
Same name and namespace in other branches
- 2.x tests/src/Functional/ChangeAccessDeniedMessageTest.php \Drupal\Tests\r4032login\Functional\ChangeAccessDeniedMessageTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ChangeAccessDeniedMessageTest.php, line 22
Class
- ChangeAccessDeniedMessageTest
- Test that it is possible to change the "User login access denied" message.
Namespace
Drupal\Tests\r4032login\FunctionalCode
protected function setUp() {
parent::setUp();
$config = $this
->config('r4032login.settings');
$config
->set('access_denied_message', 'my custom message');
$config
->save();
}