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.
The locale uninstall tests are currently failing.
This is because LocaleUninstallFunctionalTest::testUninstallProcess()
:
- Enabled a new language using
locale_add_language()
- Calls
DrupalWebTestCase::drupalCreateUser()
that callsuser_save()
that calls the Field API to store the fields - The field API fails in
field_multilingual_valid_language()
because the newly enabled language is not yet reflected in the static cache oflanguage_list()
This was passing before because the static cache of language_list()
was never primed before calling user_save()
. It is now primed somewhere during the initial cron run.
Comment | File | Size | Author |
---|---|---|---|
#1 | 709142-locale-add-language-cache.patch | 713 bytes | Damien Tournoud |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedThis is actually a critical bug (core broken). And here is a patch, that kills the static cache of
language_list()
inlocale_add_language()
.Comment #2
BerdirConfirmed and tested locally. All tests pass with this patch and #699842-20: Move permissions to a tab at admin/people/permissions
Comment #3
webchickCommitted to HEAD, thanks!