function MemoryTestRunResultsStorageTest::getTestLogEntry

Returns a sample test run log entry.

Parameters

string $test_class: The test class.

Return value

string[] An array with the elements to be logged.

File

core/tests/Drupal/KernelTests/Core/Test/MemoryTestRunResultsStorageTest.php, line 143

Class

MemoryTestRunResultsStorageTest
Tests Drupal\TestTools\TestRunner\MemoryTestRunResultsStorage.

Namespace

Drupal\KernelTests\Core\Test

Code

protected function getTestLogEntry(string $test_class) : array {
  return [
    'test_class' => $test_class,
    'status' => 'pass',
    'message' => 'Major Tom',
    'message_group' => 'other',
  ];
}

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