Commit 9b5ead24 authored by catch's avatar catch
Browse files

Issue #3281457 by quietone, catch, bbrala, deviantintegral: Move Seven and...

Issue #3281457 by quietone, catch, bbrala, deviantintegral: Move Seven and Bartik tests in the core FunctionalTests\Theme namespace to their respective themes

(cherry picked from commit 5c444d0c)
parent 453e3723
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -57,15 +57,13 @@ public function testConfigSchema() {
  }

  /**
   * Tests that the Claro theme can be uninstalled, despite being experimental.
   *
   * @todo Remove in https://www.drupal.org/project/drupal/issues/3066007
   * Tests that the Claro theme can be uninstalled.
   */
  public function testIsUninstallable() {
    $this->drupalLogin($this->drupalCreateUser(['access administration pages', 'administer themes']));

    $this->drupalGet('admin/appearance');
    $this->cssSelect('a[title="Install Seven as default theme"]')[0]->click();
    $this->cssSelect('a[title="Install <strong>Test theme</strong> as default theme"]')[0]->click();
    $this->cssSelect('a[title="Uninstall Claro theme"]')[0]->click();
    $this->assertSession()->pageTextContains('The Claro theme has been uninstalled.');
  }
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ public function testIsUninstallable() {
    ]));

    $this->drupalGet('admin/appearance');
    $this->cssSelect('a[title="Install Bartik as default theme"]')[0]->click();
    $this->cssSelect('a[title="Install <strong>Test theme</strong> as default theme"]')[0]->click();
    $this->cssSelect('a[title="Uninstall Olivero theme"]')[0]->click();
    $this->assertSession()->pageTextContains('The Olivero theme has been uninstalled.');
  }
+1 −1
Original line number Diff line number Diff line
<?php

namespace Drupal\FunctionalTests\Theme;
namespace Drupal\Tests\bartik\Functional;

use Drupal\Tests\BrowserTestBase;

+1 −1
Original line number Diff line number Diff line
<?php

namespace Drupal\FunctionalTests\Theme;
namespace Drupal\Tests\seven\Functional;

use Drupal\Tests\BrowserTestBase;