Commit 8819b8ee authored by Rakhi Soni's avatar Rakhi Soni Committed by Boris Doesborg
Browse files

Issue #3293007 by urvashi_vora, Rakhi Soni, Arantxio: Drupal Coding Standard...

Issue #3293007 by urvashi_vora, Rakhi Soni, Arantxio: Drupal Coding Standard As Per 'phpcs --standard=Drupal'
parent 115568d9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -104,7 +104,8 @@ class FloodUnblockAdminForm extends FormBase {
    // Set default markup.
    $top_markup = $this->t("List of IP addresses and user ID's that are blocked after multiple failed login attempts. You can remove separate entries.");

    // Add link to control settings page if current user haas permission to access it.
    // Add link to control settings page if current user haas
    // permission to access it.
    if ($this->currentUser->hasPermission('access flood control settings page')) {
      $top_markup .= $this->t("You can configure the login attempt limits and time windows on the <a href=':url'>Flood Control settings page</a>.</p>", [':url' => Url::fromRoute('flood_control.settings')->toString()]);
    }
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ class FloodControlUiPageTest extends BrowserTestBase {
    $this->drupalGet('admin/people/flood-unblock');
    $this->assertSession()->statusCodeEquals(200, 'Status code is equal to 200');

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