XssUnitTest::$modules

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php \Drupal\KernelTests\Core\Common\XssUnitTest::modules
  2. 10 core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php \Drupal\KernelTests\Core\Common\XssUnitTest::modules
  3. 11.x core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php \Drupal\KernelTests\Core\Common\XssUnitTest::modules

Modules to enable.

Type: array

Overrides KernelTestBase::$modules

File

core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php, line 21

Class

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

Namespace

Drupal\KernelTests\Core\Common

Code

public static $modules = [
    'filter',
    'system',
];

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