public function ColorConfigSchemaTest::testValidColorConfigSchema in Drupal 9
Same name and namespace in other branches
- 8 core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php \Drupal\Tests\color\Functional\ColorConfigSchemaTest::testValidColorConfigSchema()
Tests whether the color config schema is valid.
File
- core/
modules/ color/ tests/ src/ Functional/ ColorConfigSchemaTest.php, line 48
Class
- ColorConfigSchemaTest
- Ensures the color config schema is correct.
Namespace
Drupal\Tests\color\FunctionalCode
public function testValidColorConfigSchema() {
$settings_path = 'admin/appearance/settings/bartik';
$edit['scheme'] = '';
$edit['palette[bg]'] = '#123456';
$this
->drupalGet($settings_path);
$this
->submitForm($edit, 'Save configuration');
}