You are here

public function FloodUnblockUiPageTest::testFloodUnblockUiPageAdminUser in Flood Unblock 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/FloodUnblockUiPageTest.php \Drupal\Tests\flood_unblock\Functional\FloodUnblockUiPageTest::testFloodUnblockUiPageAdminUser()

File

tests/src/Functional/FloodUnblockUiPageTest.php, line 45

Class

FloodUnblockUiPageTest
Tests that the Flood Unblock UI pages are reachable.

Namespace

Drupal\Tests\flood_unblock\Functional

Code

public function testFloodUnblockUiPageAdminUser() {
  $this
    ->drupalLogin($this->admin_user);
  $this
    ->drupalGet('admin/config/system/flood-unblock');
  $this
    ->assertSession()
    ->statusCodeEquals(200, 'Status code is equal to 200');

  // Test that there is an empty flood list.
  $this
    ->assertSession()
    ->pageTextContains('There are no failed logins at this time.');
}