function TestRun::createNew
Same name in other branches
- 10 core/lib/Drupal/Core/Test/TestRun.php \Drupal\Core\Test\TestRun::createNew()
Returns a new test run object.
Parameters
\Drupal\Core\Test\TestRunResultsStorageInterface $test_run_results_storage: The test run results storage.
Return value
self The new test run object.
6 calls to TestRun::createNew()
- PhpUnitTestRunnerTest::testRunTestsError in core/
tests/ Drupal/ Tests/ Core/ Test/ PhpUnitTestRunnerTest.php - Tests an error in the test running phase.
- TestRunTest::testCreateAndGet in core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php - @covers ::createNew @covers ::get @covers ::id @covers ::insertLogEntry @covers ::setDatabasePrefix @covers ::getDatabasePrefix @covers ::getTestClass
- TestRunTest::testCreateAndRemove in core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php - @covers ::createNew @covers ::id @covers ::insertLogEntry @covers ::setDatabasePrefix
- TestRunTest::testGetLogEntriesByTestClass in core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php - @covers ::createNew @covers ::insertLogEntry @covers ::setDatabasePrefix @covers ::getLogEntriesByTestClass @covers ::getDatabasePrefix @covers ::getTestClass
- TestRunTest::testProcessPhpErrorLogFile in core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php - @covers ::createNew @covers ::setDatabasePrefix @covers ::processPhpErrorLogFile @covers ::getLogEntriesByTestClass
File
-
core/
lib/ Drupal/ Core/ Test/ TestRun.php, line 49
Class
- TestRun
- Implements an object that tracks execution of a test run.
Namespace
Drupal\Core\TestCode
public static function createNew(TestRunResultsStorageInterface $test_run_results_storage) : TestRun {
$test_id = $test_run_results_storage->createNew();
return new static($test_run_results_storage, $test_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.