function SimpletestTestRunResultsStorageTest::getTestLogEntry

Same name in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Test/SimpletestTestRunResultsStorageTest.php \Drupal\KernelTests\Core\Test\SimpletestTestRunResultsStorageTest::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.

3 calls to SimpletestTestRunResultsStorageTest::getTestLogEntry()
SimpletestTestRunResultsStorageTest::testBuildEnvironmentKeepingExistingResults in core/tests/Drupal/KernelTests/Core/Test/SimpletestTestRunResultsStorageTest.php
@covers ::buildTestingResultsEnvironment @covers ::validateTestingResultsEnvironment @covers ::createNew @covers ::insertLogEntry @covers ::cleanUp
SimpletestTestRunResultsStorageTest::testGetCurrentTestRunState in core/tests/Drupal/KernelTests/Core/Test/SimpletestTestRunResultsStorageTest.php
@covers ::buildTestingResultsEnvironment @covers ::createNew @covers ::insertLogEntry @covers ::setDatabasePrefix @covers ::removeResults
SimpletestTestRunResultsStorageTest::testGetLogEntriesByTestClass in core/tests/Drupal/KernelTests/Core/Test/SimpletestTestRunResultsStorageTest.php
@covers ::buildTestingResultsEnvironment @covers ::createNew @covers ::insertLogEntry @covers ::setDatabasePrefix @covers ::getLogEntriesByTestClass

File

core/tests/Drupal/KernelTests/Core/Test/SimpletestTestRunResultsStorageTest.php, line 181

Class

SimpletestTestRunResultsStorageTest
@coversDefaultClass \Drupal\Core\Test\SimpletestTestRunResultsStorage @group Test

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.