diff -u b/core/modules/color/tests/src/Functional/ColorTranslationPreviewTest.php b/core/modules/color/tests/src/Functional/ColorTranslationPreviewTest.php --- b/core/modules/color/tests/src/Functional/ColorTranslationPreviewTest.php +++ b/core/modules/color/tests/src/Functional/ColorTranslationPreviewTest.php @@ -20,21 +20,18 @@ public static $modules = ['color', 'color_test', 'language', 'locale']; /** - * Profile to enable. - * - * @var string - */ - protected $profile = 'standard'; - - /** * {@inheritdoc} */ protected function setUp() { parent::setUp(); // Add a default locale storage. $this->storage = $this->container->get('locale.storage'); + // Add French language. ConfigurableLanguage::createFromLangcode('fr')->save(); + + // Installing bartik theme. + \Drupal::service('theme_installer')->install(['bartik']); } /** @@ -43,6 +40,7 @@ public function testTranslationPreview() { $account = $this->drupalCreateUser(['administer languages', 'administer themes']); $this->drupalLogin($account); + $source = $this->storage->createString([ 'source' => 'Example heading', 'context' => '', @@ -55,7 +53,8 @@ - //Checking the string 'Example heading' is translating to French. + + // Checking the string 'Example heading' is translating to French. $this->drupalGet('fr/admin/appearance/settings/bartik'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->pageTextContains('Exemple de titre'); } -} +} \ No newline at end of file