function AdminTest::testFocusColorSetting
Same name and namespace in other branches
- main core/themes/admin/tests/src/Functional/AdminTest.php \Drupal\Tests\admin\Functional\AdminTest::testFocusColorSetting()
Tests focus color setting.
File
-
core/
themes/ admin/ tests/ src/ Functional/ AdminTest.php, line 92
Class
- AdminTest
- Tests the Admin theme.
Namespace
Drupal\Tests\admin\FunctionalCode
public function testFocusColorSetting() : void {
\Drupal::configFactory()->getEditable('admin.settings')
->set('preset_focus_color', 'blue')
->save();
$response = $this->drupalGet('/admin/content');
$this->assertSession()
->statusCodeEquals(200);
$this->assertStringContainsString('"preset_focus_color":"blue"', $response);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.