function TestRunTest::getTestLogEntry
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Test/TestRunTest.php \Drupal\KernelTests\Core\Test\TestRunTest::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 TestRunTest::getTestLogEntry()
- TestRunTest::testCreateAndGet in core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php - @covers ::createNew[[api-linebreak]] @covers ::get[[api-linebreak]] @covers ::id[[api-linebreak]] @covers ::insertLogEntry[[api-linebreak]] @covers ::setDatabasePrefix[[api-linebreak]] @covers ::getDatabasePrefix[[api-linebreak]] @covers…
- TestRunTest::testCreateAndRemove in core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php - @covers ::createNew[[api-linebreak]] @covers ::id[[api-linebreak]] @covers ::insertLogEntry[[api-linebreak]] @covers ::setDatabasePrefix[[api-linebreak]]
- TestRunTest::testGetLogEntriesByTestClass in core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php - @covers ::createNew[[api-linebreak]] @covers ::insertLogEntry[[api-linebreak]] @covers ::setDatabasePrefix[[api-linebreak]] @covers ::getLogEntriesByTestClass[[api-linebreak]] @covers ::getDatabasePrefix[[api-linebreak]] @covers…
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Test/ TestRunTest.php, line 286
Class
- TestRunTest
- @coversDefaultClass \Drupal\Core\Test\TestRun[[api-linebreak]] @group Test
Namespace
Drupal\KernelTests\Core\TestCode
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.