function ColorConfigSchemaTest::testValidColorConfigSchema

Same name and namespace in other branches
  1. 9 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() {
    $settings_path = 'admin/appearance/settings/bartik';
    $edit['scheme'] = '';
    $edit['palette[bg]'] = '#123456';
    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
}

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