Skip to content

Commit

Permalink
Issue #3138796 by jungle, mohrerao, sja112, kkalashnikov, xjm, ketika…
Browse files Browse the repository at this point in the history
…grover: Fix the typos "cotrol" and make the one-line summaries containing it conform to standards)
  • Loading branch information
xjm committed Jun 25, 2020
1 parent 141f13c commit 6820884
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/user/tests/src/Functional/UserPasswordResetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,28 +391,28 @@ public function assertNoValidPasswordReset($name) {
}

/**
* Helper function to make assertions about a password reset triggering user flood cotrol.
* Makes assertions about a password reset triggering user flood control.
*/
public function assertPasswordUserFlood() {
$this->assertText(t('Too many password recovery requests for this account. It is temporarily blocked. Try again later or contact the site administrator.'), 'User password reset flood error message shown.');
}

/**
* Helper function to make assertions about a password reset not triggering user flood control.
* Makes assertions about a password reset not triggering user flood control.
*/
public function assertNoPasswordUserFlood() {
$this->assertNoText(t('Too many password recovery requests for this account. It is temporarily blocked. Try again later or contact the site administrator.'), 'User password reset flood error message not shown.');
}

/**
* Helper function to make assertions about a password reset triggering IP flood cotrol.
* Makes assertions about a password reset triggering IP flood control.
*/
public function assertPasswordIpFlood() {
$this->assertText(t('Too many password recovery requests from your IP address. It is temporarily blocked. Try again later or contact the site administrator.'), 'IP password reset flood error message shown.');
}

/**
* Helper function to make assertions about a password reset not triggering IP flood control.
* Makes assertions about a password reset not triggering IP flood control.
*/
public function assertNoPasswordIpFlood() {
$this->assertNoText(t('Too many password recovery requests from your IP address. It is temporarily blocked. Try again later or contact the site administrator.'), 'IP password reset flood error message not shown.');
Expand Down

0 comments on commit 6820884

Please sign in to comment.