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

Breadcrumb

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

function TestRun::get

Returns a test run object from storage.

Parameters

\Drupal\Core\Test\TestRunResultsStorageInterface $test_run_results_storage: The test run results storage.

int|string $test_id: The test run id.

Return value

self The test run object.

File

core/lib/Drupal/Core/Test/TestRun.php, line 65

Class

TestRun
Implements an object that tracks execution of a test run.

Namespace

Drupal\Core\Test

Code

public static function get(TestRunResultsStorageInterface $test_run_results_storage, int|string $test_id) : TestRun {
    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