Skip to content
Snippets Groups Projects
Commit 920d2ffd authored by Angie Byron's avatar Angie Byron
Browse files

Issue #276153 by pwolanin, das-peter: Fixed Testing does not work at all when...

Issue #276153 by pwolanin, das-peter: Fixed Testing does not work at all when locale of host session is not English.
parent 140e3cae
No related branches found
No related tags found
No related merge requests found
...@@ -1255,6 +1255,11 @@ protected function setUp() { ...@@ -1255,6 +1255,11 @@ protected function setUp() {
$this->originalProfile = drupal_get_profile(); $this->originalProfile = drupal_get_profile();
$clean_url_original = variable_get('clean_url', 0); $clean_url_original = variable_get('clean_url', 0);
// Set to English to prevent exceptions from utf8_truncate() from t()
// during install if the current language is not 'en'.
// The following array/object conversion is copied from language_default().
$language = (object) array('language' => 'en', 'name' => 'English', 'native' => 'English', 'direction' => 0, 'enabled' => 1, 'plurals' => 0, 'formula' => '', 'domain' => '', 'prefix' => '', 'weight' => 0, 'javascript' => '');
// Save and clean shutdown callbacks array because it static cached and // Save and clean shutdown callbacks array because it static cached and
// will be changed by the test run. If we don't, then it will contain // will be changed by the test run. If we don't, then it will contain
// callbacks from both environments. So testing environment will try // callbacks from both environments. So testing environment will try
......
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