Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

6 files
+ 10
16
Compare changes
  • Side-by-side
  • Inline
Files
6
  • f0cc61b1
    Issue #3307454 by Spokje, lauriii: Move classy related tests to the theme... · f0cc61b1
    Ben Mullins authored
    Issue #3307454 by Spokje, lauriii: Move classy related tests to the theme directory/namespace or handle them otherwise
@@ -438,9 +438,6 @@ public function testUninstallingThemes() {
$this->assertSession()->responseNotContains('Uninstall claro theme');
// Check that olivero cannot be uninstalled as it is the default theme.
$this->assertSession()->responseNotContains('Uninstall Olivero theme');
// Check that the classy theme cannot be uninstalled as it is a base theme
// of claro and olivero.
$this->assertSession()->responseNotContains('Uninstall Classy theme');
// Install Stark and set it as the default theme.
\Drupal::service('theme_installer')->install(['stark']);
@@ -454,9 +451,6 @@ public function testUninstallingThemes() {
// Check that claro can be uninstalled now.
$this->assertSession()->responseContains('Uninstall claro theme');
// Check that the classy theme still cannot be uninstalled as it is a
// base theme of olivero.
$this->assertSession()->responseNotContains('Uninstall Classy theme');
// Change the default theme to stark, stark is second in the list.
$this->clickLink('Set as default', 1);
@@ -464,18 +458,11 @@ public function testUninstallingThemes() {
// Check that olivero can be uninstalled now.
$this->assertSession()->responseContains('Uninstall Olivero theme');
// Check that the classy theme still can't be uninstalled as neither of its
// base themes have been.
$this->assertSession()->responseNotContains('Uninstall Classy theme');
// Uninstall each of the two themes starting with Olivero.
$this->cssSelect('a[title="Uninstall Olivero theme"]')[0]->click();
$this->assertSession()->responseContains('The <em class="placeholder">Olivero</em> theme has been uninstalled');
$this->cssSelect('a[title="Uninstall Claro theme"]')[0]->click();
$this->assertSession()->responseContains('The <em class="placeholder">Claro</em> theme has been uninstalled');
// Check that the classy theme still can't be uninstalled as it is hidden.
$this->assertSession()->responseNotContains('Uninstall Classy theme');
}
/**
Loading