Search for Unit

  1. Search 7.x for Unit
  2. Search 9.5.x for Unit
  3. Search 10.3.x for Unit
  4. Search 11.x for Unit
  5. Search main for Unit
  6. Other projects
Title Object type File name Summary
UnitTestCaseDeprecationTest class core/tests/Drupal/Tests/UnitTestCaseDeprecationTest.php @coversDefaultClass \Drupal\Tests\UnitTestCase[[api-linebreak]]
UnitTestCaseDeprecationTest.php file core/tests/Drupal/Tests/UnitTestCaseDeprecationTest.php
UnitTestCaseDeprecationTest::testDeprecatedGetBlockMockWithMachineName function core/tests/Drupal/Tests/UnitTestCaseDeprecationTest.php @covers ::getBlockMockWithMachineName[[api-linebreak]]
@expectedDeprecation Drupal\Tests\UnitTestCase::getBlockMockWithMachineName is deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.0. Unit test base classes should not have dependencies…
UnitTestSuite class core/tests/TestSuites/UnitTestSuite.php Discovers tests for the unit test suite.
UnitTestSuite.php file core/tests/TestSuites/UnitTestSuite.php
UnitTestSuite::suite function core/tests/TestSuites/UnitTestSuite.php Factory method which loads up a suite with all unit tests.
XssUnitTest class core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Confirm that \Drupal\Component\Utility\Xss::filter() and check_url() work
correctly, including invalid multi-byte sequences.
XssUnitTest.php file core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php
XssUnitTest::$modules property core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Modules to enable.
XssUnitTest::setUp function core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php
XssUnitTest::testBadProtocolStripping function core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Checks that harmful protocols are stripped.
XssUnitTest::testCheckUrl function core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Tests deprecation of the check_url() function.
XssUnitTest::testT function core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Tests t() functionality.

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