public function OliveroTest::testIsUninstallable in Drupal 9
Same name and namespace in other branches
- 10 core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php \Drupal\FunctionalTests\Theme\OliveroTest::testIsUninstallable()
Tests that the Olivero theme can be uninstalled.
File
- core/
tests/ Drupal/ FunctionalTests/ Theme/ OliveroTest.php, line 120
Class
- OliveroTest
- Tests the Olivero theme.
Namespace
Drupal\FunctionalTests\ThemeCode
public function testIsUninstallable() {
$this
->drupalLogin($this
->drupalCreateUser([
'access administration pages',
'administer themes',
]));
$this
->drupalGet('admin/appearance');
$this
->cssSelect('a[title="Install Bartik as default theme"]')[0]
->click();
$this
->cssSelect('a[title="Uninstall Olivero theme"]')[0]
->click();
$this
->assertSession()
->pageTextContains('The Olivero theme has been uninstalled.');
}