function WorkAllocatorTest::testSingleBin
Tests sorting tests into a single bin.
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ WorkAllocatorTest.php, line 24
Class
- WorkAllocatorTest
- Unit tests for WorkAllocator.
Namespace
Drupal\Tests\Core\TestCode
public function testSingleBin() : void {
$path = __DIR__ . '/../../../../fixtures/test_runner/work_allocator';
$allocator = new WorkAllocator(json_decode(file_get_contents($path . '/simple_in.json'), TRUE));
$this->assertEquals(json_decode(file_get_contents($path . '/simple_out.json'), TRUE), $allocator->getAllocatedList());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.