function BatchBuilderTest::testQueueExists
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Batch/BatchBuilderTest.php \Drupal\Tests\Core\Batch\BatchBuilderTest::testQueueExists()
- 10 core/tests/Drupal/Tests/Core/Batch/BatchBuilderTest.php \Drupal\Tests\Core\Batch\BatchBuilderTest::testQueueExists()
- 11.x core/tests/Drupal/Tests/Core/Batch/BatchBuilderTest.php \Drupal\Tests\Core\Batch\BatchBuilderTest::testQueueExists()
Tests queue class exists.
@covers ::setQueue
File
-
core/
tests/ Drupal/ Tests/ Core/ Batch/ BatchBuilderTest.php, line 186
Class
- BatchBuilderTest
- Tests for the batch builder class.
Namespace
Drupal\Tests\Core\BatchCode
public function testQueueExists() {
$batch_builder = new BatchBuilder();
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Class \\ThisIsNotAClass does not exist.');
$batch_builder->setQueue('BatchName', '\\ThisIsNotAClass');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.