function SimpletestTestRunResultsStorage::getLogEntriesByTestClass

Same name in other branches
  1. 10 core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php \Drupal\Core\Test\SimpletestTestRunResultsStorage::getLogEntriesByTestClass()

Overrides TestRunResultsStorageInterface::getLogEntriesByTestClass

File

core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php, line 111

Class

SimpletestTestRunResultsStorage
Implements a test run results storage compatible with legacy Simpletest.

Namespace

Drupal\Core\Test

Code

public function getLogEntriesByTestClass(TestRun $test_run) : array {
    return $this->connection
        ->select('simpletest')
        ->fields('simpletest')
        ->condition('test_id', $test_run->id())
        ->orderBy('test_class')
        ->orderBy('message_id')
        ->execute()
        ->fetchAll();
}

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