/* Decoded by unphp.net */ bigUser = $this->drupalCreateUser(['administer themes']); } /** * Ensures color preview.html is sanitized. */ public function testColorPreview() { // Install the color test theme. \Drupal::service('theme_handler')->install(['color_test_theme']); $this->drupalLogin($this->bigUser); // Markup is being printed from a HTML file located in: // core/modules/color/tests/modules/color_test/themes/color_test_theme/color/preview.html $url = Url::fromRoute('system.theme_settings_theme', ['theme' => 'color_test_theme']); $this->drupalGet($url); $this->assertText('TEST COLOR PREVIEW'); $this->assertNoRaw(''); $this->assertRaw('

TEST COLOR PREVIEW

'); } } ?>