function MemoryTestRunResultsStorage::insertLogEntry
Adds a test log entry for a test run to the storage.
Parameters
\Drupal\Core\Test\TestRun $test_run: The test run object.
array $entry: The array of the log entry elements.
Return value
bool TRUE if the addition was successful, FALSE otherwise.
Overrides TestRunResultsStorageInterface::insertLogEntry
File
-
core/
tests/ Drupal/ TestTools/ TestRunner/ MemoryTestRunResultsStorage.php, line 48
Class
- MemoryTestRunResultsStorage
- Implements an in-memory test run results storage.
Namespace
Drupal\TestTools\TestRunnerCode
public function insertLogEntry(TestRun $test_run, array $entry) : bool {
$entry['test_id'] = $test_run->id();
$entry = array_merge([
'function' => 'Unknown',
'line' => 0,
'file' => 'Unknown',
], $entry);
$this->testId[$test_run->id()]['log'][] = $entry;
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.