public function ClaroTest::testConfigSchema in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()
Tests 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');
}