Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've seen this a few times now, about time to open an issue about it. Seen it myself twice (last in #1804380: convert color variables to config/state) and heard of a third case, so I'm quite sure that this happened even more.
Fallback page title for user pages is 'User account' for anonymous users. Other UserAccountLinksTests.php 118 Drupal\user\Tests\UserAccountLinksTests->testAccountPageTitles()
Haven't looked into it yet, I've no idea how an assertion like this could randomly fail.
Comment | File | Size | Author |
---|---|---|---|
#2 | account-links-random-test-failure-1833928.patch | 904 bytes | Berdir |
Comments
Comment #1
BerdirGot it. As I assumed, the problem is that we use randomString() for an URL but I wasn't sure what exactly of that is the problem.
This fails:
Will upload a patch soon.
Comment #2
BerdirAnd here is the patch. Tests were introduced in #1251188: Set unique titles for user/register, user/password, and user/login menu items
Comment #3
boombatower CreditAttribution: boombatower commentedNice catch.
Comment #4
webchickShould we just remove the randomString() function, I wonder? These things seem to bite us a lot. :\
Anyway, great catch. Committed and pushed to 8.x. Thanks!