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

Breadcrumb

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

function TestRun::getTestClass

Gets the latest class under test.

Return value

string The test class.

File

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

Class

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

Namespace

Drupal\Core\Test

Code

public function getTestClass() : string {
    if (is_null($this->testClass)) {
        $state = $this->testRunResultsStorage
            ->getCurrentTestRunState($this);
        $this->databasePrefix = $state['db_prefix'];
        $this->testClass = $state['test_class'];
    }
    return $this->testClass;
}

API Navigation

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