Skip to content
Snippets Groups Projects
Commit d793cca5 authored by catch's avatar catch
Browse files

Issue #2032453 by Berdir: Fixed Random fail: WebTestBase::randomString...

Issue #2032453 by Berdir: Fixed Random fail: WebTestBase::randomString returning a string containing a $ followed by a number causes assertLink() to fail.
parent 446016a7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -169,7 +169,9 @@ public function testRandomStringValidator() {
* TRUE if the random string is valid, FALSE if not.
*/
public function _RandomStringValidate($string) {
if (empty($this->firstStringGenerated)) {
// Return FALSE for the first generated string and any string that is the
// same, as the test expects a different string to be returned.
if (empty($this->firstStringGenerated) || $string == $this->firstStringGenerated) {
$this->firstStringGenerated = $string;
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment