function BatchBuilderTest::testRegisterIds
Tests registering IDs of built batches.
@legacy-covers ::isSetIdRegistered @legacy-covers ::registerSetId
File
-
core/
tests/ Drupal/ Tests/ Core/ Batch/ BatchBuilderTest.php, line 257
Class
- BatchBuilderTest
- Tests for the batch builder class.
Namespace
Drupal\Tests\Core\BatchCode
public function testRegisterIds() : void {
$setId = $this->randomMachineName();
$this->assertFalse(BatchBuilder::isSetIdRegistered($setId));
(new BatchBuilder())->registerSetId($setId);
$this->assertTrue(BatchBuilder::isSetIdRegistered($setId));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.