function ColorConfigSchemaTest::testValidColorConfigSchema

Same name and namespace in other branches
  1. 8.9.x 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\Functional

Code

public function testValidColorConfigSchema() : void {
    $settings_path = 'admin/appearance/settings/color_test_theme';
    $edit['scheme'] = '';
    $edit['palette[bg]'] = '#123456';
    $this->drupalGet($settings_path);
    $this->submitForm($edit, 'Save configuration');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.