Commit 6db1e492 authored by webchick's avatar webchick

Issue #2148071 by Gábor Hojtsy, philipz, marthinal, penyaskito: Cannot install...

Issue #2148071 by Gábor Hojtsy, philipz, marthinal, penyaskito: Cannot install in foreign language (Undefined index: und in ContentEntityBase->language()).
parent 4462e204
......@@ -35,6 +35,8 @@ protected function setUp() {
// Add the translations directory so we can retrieve German translations.
$conf['locale.settings']['translation.path'] = drupal_get_path('module', 'simpletest') . '/files/translations';
$conf['language_default']['name'] = 'German';
$conf['language_default']['id'] = 'de';
// Create the database prefix for this test.
$this->prepareDatabasePrefix();
......@@ -120,6 +122,16 @@ protected function setUp() {
$config->save();
}
// Submit site configuration form.
$this->drupalPostForm(NULL, array(
'site_mail' => 'admin@test.de',
'account[name]' => 'admin',
'account[mail]' => 'admin@test.de',
'account[pass][pass1]' => '123',
'account[pass][pass2]' => '123',
'site_default_country' => 'DE',
), $submit_value);
// Use the test mail class instead of the default mail handler class.
\Drupal::config('system.mail')->set('interface.default', 'Drupal\Core\Mail\VariableLog')->save();
......
......@@ -233,6 +233,7 @@ function user_install() {
'uid' => 0,
'name' => '',
'mail' => '',
'langcode' => language_default()->id,
))
->execute();
......@@ -246,6 +247,7 @@ function user_install() {
'mail' => 'placeholder-for-uid-1',
'created' => REQUEST_TIME,
'status' => 1,
'langcode' => language_default()->id,
))
->execute();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment