function 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.');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
