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

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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();
}
......
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