public function ClaroTest::testIsUninstallable in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testIsUninstallable()
- 9 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testIsUninstallable()
Tests that the Claro theme can be uninstalled.
File
- core/
tests/ Drupal/ FunctionalTests/ Theme/ ClaroTest.php, line 62
Class
- ClaroTest
- Tests the Claro 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 <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.');
}