You are here

public function ChangeAccessDeniedMessageTest::testChangeAccessDeniedMessage in Redirect 403 to User Login 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/ChangeAccessDeniedMessageTest.php \Drupal\Tests\r4032login\Functional\ChangeAccessDeniedMessageTest::testChangeAccessDeniedMessage()

Test that is it possible to change the "User login access denied" message.

Throws

\Behat\Mink\Exception\ExpectationException

File

tests/src/Functional/ChangeAccessDeniedMessageTest.php, line 35

Class

ChangeAccessDeniedMessageTest
Test that it is possible to change the "User login access denied" message.

Namespace

Drupal\Tests\r4032login\Functional

Code

public function testChangeAccessDeniedMessage() {
  $this
    ->drupalGet('admin/config');
  $this
    ->assertSession()
    ->elementTextContains('css', '.messages', 'my custom message');
}