Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestRun.php

function 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.

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\Test

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal