function MemoryTestRunResultsStorage::createNew

File

core/tests/Drupal/TestTools/TestRunner/MemoryTestRunResultsStorage.php, line 30

Class

MemoryTestRunResultsStorage
Implements an in-memory test run results storage.

Namespace

Drupal\TestTools\TestRunner

Code

public function createNew() : int {
  $id = $this->id++;
  $this->testId[$id] = [
    'log' => [],
  ];
  return $id;
}

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