function ClaroTest::testConfigSchema
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()
- 10 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()
- 11.x core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()
Test Claro's configuration schema.
File
-
core/
tests/ Drupal/ FunctionalTests/ Theme/ ClaroTest.php, line 45
Class
- ClaroTest
- Tests the Claro theme.
Namespace
Drupal\FunctionalTests\ThemeCode
public function testConfigSchema() {
$this->drupalLogin($this->rootUser);
$this->drupalGet('admin/modules');
$this->assertSession()
->elementNotExists('css', '#block-claro-help');
// Install the block module to ensure Claro's configuration is valid
// according to schema.
\Drupal::service('module_installer')->install([
'block',
'help',
]);
$this->rebuildAll();
$this->drupalGet('admin/modules');
$this->assertSession()
->elementExists('css', '#block-claro-help');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.