function ClaroTest::testConfigSchema
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()
- 8.9.x 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()
Tests Claro's configuration schema.
File
-
core/
tests/ Drupal/ FunctionalTests/ Theme/ ClaroTest.php, line 49
Class
- ClaroTest
- Tests the Claro theme.
Namespace
Drupal\FunctionalTests\ThemeCode
public function testConfigSchema() : void {
$permissions = [
'administer modules',
];
$this->drupalLogin($this->drupalCreateUser($permissions));
$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.