diff --git a/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php b/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php index 1ab8e5a..abecc2a 100644 --- a/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php +++ b/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php @@ -8,6 +8,7 @@ namespace Drupal\system\Tests\Installer; use Drupal\simpletest\InstallerTestBase; +use Drupal\user\Entity\User; /** * Selects German as the installation language and verifies the following page @@ -51,6 +52,11 @@ public function testInstaller() { $this->assertUrl('user/1'); $this->assertResponse(200); + $account = User::load(0); + $this->assertEqual($account->language()->getId(), 'de', 'Anonymous user is German.'); + $account = User::load(1); + $this->assertEqual($account->language()->getId(), 'de', 'Administrator user is German.'); + // Ensure that we can enable basic_auth on a non-english site. $this->drupalPostForm('admin/modules', array('modules[Web services][basic_auth][enable]' => TRUE), t('Save configuration')); $this->assertResponse(200);