function WorkAllocator::assignTestsSequence

Assigns the test sequence.

Parameters

TestClassInfoList $tests: The array of test class info.

string $sequenceKey: The key of the TestClassInfo to add.

1 call to WorkAllocator::assignTestsSequence()
WorkAllocator::process in core/tests/Drupal/TestTools/TestRunner/WorkAllocator.php
Allocates tests to workers.

File

core/tests/Drupal/TestTools/TestRunner/WorkAllocator.php, line 162

Class

WorkAllocator
Allocates available tests to test workers.

Namespace

Drupal\TestTools\TestRunner

Code

private function assignTestsSequence(array &$tests, string $sequenceKey) : void {
  $i = 0;
  foreach ($tests as &$testInfo) {
    $testInfo[$sequenceKey] = ++$i;
  }
}

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