You are here

protected function HighContrastStyleSheetTest::setUp in High contrast 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/HighContrastStyleSheetTest.php, line 38

Class

HighContrastStyleSheetTest
Test to ensure that changes to the stylesheet are shown in the (cached) page.

Namespace

Drupal\Tests\high_contrast\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();

  // Store the values for later comparison.
  $this->values = [
    'colors_background' => '#123123',
    'colors_text' => '#abcabc',
    'colors_hyperlinks' => '#defdef',
  ];

  // Update the configuration.
  $this
    ->config('high_contrast.settings')
    ->setData($this->values)
    ->save();
}