namespace Drupal\Core\Test

Same name in other branches
  1. 8.9.x Drupal\Core\Test
  2. 10 Drupal\Core\Test
  3. 11.x Drupal\Core\Test
Object name File name Summary
AssertMailTrait core/lib/Drupal/Core/Test/AssertMailTrait.php Provides methods for testing emails sent during test runs.
EnvironmentCleaner core/lib/Drupal/Core/Test/EnvironmentCleaner.php Helper class for cleaning test environments.
EnvironmentCleanerInterface core/lib/Drupal/Core/Test/EnvironmentCleanerInterface.php Defines an interface for cleaning up test results and fixtures.
FunctionalTestSetupTrait core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Defines a trait for shared functional test setup functionality.
JUnitConverter core/lib/Drupal/Core/Test/JUnitConverter.php Converts JUnit XML to Drupal's {simpletest} schema.
ObjectSerialization core/lib/Drupal/Core/Test/ObjectSerialization.php Object to test that security issues around serialization.
PerformanceTestRecorder core/lib/Drupal/Core/Test/PerformanceTestRecorder.php Records the number of times specific events occur.
PhpUnitTestRunner core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Run PHPUnit-based tests.
RefreshVariablesTrait core/lib/Drupal/Core/Test/RefreshVariablesTrait.php Provides a method to refresh in-memory configuration and state information.
TestDatabase core/lib/Drupal/Core/Test/TestDatabase.php Provides helper methods for interacting with the fixture database.
TestDiscovery core/lib/Drupal/Core/Test/TestDiscovery.php Discovers available tests.
TestKernel core/lib/Drupal/Core/Test/TestKernel.php Kernel to mock requests to test simpletest.
TestRunnerKernel core/lib/Drupal/Core/Test/TestRunnerKernel.php Kernel for run-tests.sh.
TestSetupTrait core/lib/Drupal/Core/Test/TestSetupTrait.php Provides a trait for shared test setup functionality.
TestStatus core/lib/Drupal/Core/Test/TestStatus.php Consolidates test result status information.

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