Verified Commit 111eb83c authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

task: #3622220 Use Admin theme in installer related tests

By: quietone
By: smustgrave
By: godotislate
parent 5ac5b9c3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: 'Custom installer theme'
type: theme
description: 'A custom installer theme to test that the installer can be themed.'
base theme: claro
base theme: default_admin
version: VERSION
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ protected function prepareEnvironment(): void {
      'distribution' => [
        'name' => 'My Distribution',
        'install' => [
          'theme' => 'claro',
          'theme' => 'default_admin',
        ],
      ],
    ];
+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ protected function setUpLanguage(): void {
    // should be visible.
    $this->assertSession()->pageTextContains('Added by custom installer theme.');
    // Verify the base theme CSS is loaded.
    $this->assertSession()->responseContains("claro/css/theme/install-page.css");
    $this->assertSession()->responseContains("default_admin/css/theme/install-page.css");

    // Verify that the "Choose profile" step does not appear.
    $this->assertSession()->pageTextNotContains('profile');
@@ -81,7 +81,7 @@ protected function setUpSite(): void {
    // by now, and the install theme still renders this page, so the install
    // theme and its base theme must both keep their hook implementations.
    $this->assertSession()->pageTextContains('Added by custom installer theme on the last step.');
    $this->assertSession()->responseContains("claro/css/theme/install-page.css");
    $this->assertSession()->responseContains("default_admin/css/theme/install-page.css");

    parent::setUpSite();
  }
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ protected function prepareEnvironment(): void {
        'name' => 'My Distribution',
        'langcode' => $this->langcode,
        'install' => [
          'theme' => 'claro',
          'theme' => 'default_admin',
        ],
      ],
    ];
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ protected function prepareEnvironment(): void {
        'name' => 'My Distribution',
        'langcode' => $this->langcode,
        'install' => [
          'theme' => 'claro',
          'theme' => 'default_admin',
        ],
      ],
    ];
Loading