You are here

protected function XssUnitTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Common/XssUnitTest.php \Drupal\system\Tests\Common\XssUnitTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/system/src/Tests/Common/XssUnitTest.php, line 28
Contains \Drupal\system\Tests\Common\XssUnitTest.

Class

XssUnitTest
Confirm that \Drupal\Component\Utility\Xss::filter() and check_url() work correctly, including invalid multi-byte sequences.

Namespace

Drupal\system\Tests\Common

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig(array(
    'system',
  ));
}