Issue #3281444 by ravi.shankar, nod_, _shY, Vighneshh, deviantintegral, catch, lauriii: Update Installer tests to not use Bartik and Seven

merge-requests/2585/head
catch 2022-08-04 00:03:38 +09:00
parent 16d5d4287f
commit cec944956b
7 changed files with 8 additions and 8 deletions

View File

@ -38,7 +38,7 @@ class DistributionProfileExistingSettingsTest extends InstallerTestBase {
'distribution' => [
'name' => 'My Distribution',
'install' => [
'theme' => 'bartik',
'theme' => 'olivero',
],
],
];

View File

@ -32,7 +32,7 @@ class DistributionProfileTest extends InstallerTestBase {
'distribution' => [
'name' => 'My Distribution',
'install' => [
'theme' => 'bartik',
'theme' => 'claro',
'finish_url' => '/root-user',
],
],

View File

@ -43,7 +43,7 @@ class DistributionProfileTranslationQueryTest extends InstallerTestBase {
'name' => 'My Distribution',
'langcode' => $this->langcode,
'install' => [
'theme' => 'bartik',
'theme' => 'claro',
],
],
];

View File

@ -45,7 +45,7 @@ class DistributionProfileTranslationTest extends InstallerTestBase {
'name' => 'My Distribution',
'langcode' => $this->langcode,
'install' => [
'theme' => 'bartik',
'theme' => 'claro',
],
],
];

View File

@ -53,7 +53,7 @@ class InstallerTest extends InstallerTestBase {
protected function setUpLanguage() {
// Test that \Drupal\Core\Render\BareHtmlPageRenderer adds assets and
// metatags as expected to the first page of the installer.
$this->assertSession()->responseContains("core/themes/claro/css/components/button.css");
$this->assertSession()->responseContains("css/components/button.css");
$this->assertSession()->responseContains('<meta charset="utf-8" />');
// Assert that the expected title is present.

View File

@ -37,7 +37,7 @@ class MultipleDistributionsProfileTest extends InstallerTestBase {
'distribution' => [
'name' => $name,
'install' => [
'theme' => 'bartik',
'theme' => 'claro',
],
],
];
@ -57,7 +57,7 @@ class MultipleDistributionsProfileTest extends InstallerTestBase {
// Verify that the distribution name appears.
$this->assertSession()->pageTextContains('distribution_one');
// Verify that the requested theme is used.
$this->assertSession()->responseContains('bartik');
$this->assertSession()->responseContains('claro');
// Verify that the "Choose profile" step does not appear.
$this->assertSession()->pageTextNotContains('profile');

View File

@ -29,7 +29,7 @@ class StandardInstallerTest extends ConfigAfterInstallerTestBase {
protected function setUpSite() {
// Test that the correct theme is being used.
$this->assertSession()->responseNotContains('olivero');
$this->assertSession()->responseContains('themes/claro/css/theme/install-page.css');
$this->assertSession()->responseContains('css/theme/install-page.css');
parent::setUpSite();
}