function WorkAllocatorTest::testClassInfo
Builds test class information for a kernel test.
Parameters
class-string $class: The test class.
positive-int $testsCount: The number of test cases.
bool $slow: Whether the test is in the '#slow' group.
Return value
TestClassInfo The test class information.
1 call to WorkAllocatorTest::testClassInfo()
- WorkAllocatorTest::testLeastWeightedBin in core/
tests/ Drupal/ Tests/ Core/ Test/ WorkAllocatorTest.php - Tests that each test goes into the bin with the lowest total weight.
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ WorkAllocatorTest.php, line 92
Class
- WorkAllocatorTest
- Unit tests for WorkAllocator.
Namespace
Drupal\Tests\Core\TestCode
protected static function testClassInfo(string $class, int $testsCount, bool $slow = FALSE) : array {
return [
'name' => $class,
'group' => 'group',
'groups' => $slow ? [
'group',
'#slow',
] : [
'group',
],
'type' => 'kernel',
'description' => '',
'file' => '',
'tests_count' => $testsCount,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.