Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(RFC) Fix Locale Test by re-setting the locale used to en_US and by resetting the I18n singleton #13246

Merged
merged 1 commit into from
Dec 9, 2018

Conversation

seamuslee001
Copy link
Contributor

Overview

This fixes an issue in unit tests where subsequent tests remain in French and not are in English because the locale has not been reset

Before

Subesquent tests would remain in french as per https://test.civicrm.org/job/CiviCRM-Core-Matrix/BKPROF=min,CIVIVER=master,label=bknix-tmp/5951/#showFailuresLink

After

Tests Fixed because locale is reset

@civibot
Copy link

civibot bot commented Dec 9, 2018

(Standard links)

@civibot civibot bot added the 5.9 label Dec 9, 2018
@seamuslee001 seamuslee001 changed the title (NFC) Fix Locale Test by re-setting the locale used to en_US (WIP) (NFC) Fix Locale Test by re-setting the locale used to en_US Dec 9, 2018
Ensure that CRM_Core_I18n singleton is cleared as well
@seamuslee001 seamuslee001 changed the title (WIP) (NFC) Fix Locale Test by re-setting the locale used to en_US (RFC) Fix Locale Test by re-setting the locale used to en_US Dec 9, 2018
@seamuslee001
Copy link
Contributor Author

Removed WIP and changed to RFC given the code changes now needed, I think this will fix it

@seamuslee001 seamuslee001 changed the title (RFC) Fix Locale Test by re-setting the locale used to en_US (RFC) Fix Locale Test by re-setting the locale used to en_US and by resetting the I18n singleton Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants