function TestRun::insertLogEntry

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Test/TestRun.php \Drupal\Core\Test\TestRun::insertLogEntry()

Adds a test log entry.

Parameters

array $entry: The array of the log entry elements.

Return value

bool TRUE if the addition was successful, FALSE otherwise.

1 call to TestRun::insertLogEntry()
TestRun::processPhpErrorLogFile in core/lib/Drupal/Core/Test/TestRun.php
Reads the PHP error log and reports any errors as assertion failures.

File

core/lib/Drupal/Core/Test/TestRun.php, line 132

Class

TestRun
Implements an object that tracks execution of a test run.

Namespace

Drupal\Core\Test

Code

public function insertLogEntry(array $entry) : bool {
    $this->testClass = $entry['test_class'];
    return $this->testRunResultsStorage
        ->insertLogEntry($this, $entry);
}

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