protected function AssertQueueTrait::assertQueueSize in Helper 8
Assert a queue size.
Parameters
string $queue_name: The queue name.
int $expected_size: The expected size of the queue.
1 call to AssertQueueTrait::assertQueueSize()
- AssertQueueTrait::assertQueueRun in src/
Tests/ AssertQueueTrait.php - Assert running a queue.
File
- src/
Tests/ AssertQueueTrait.php, line 45
Class
- AssertQueueTrait
- Provides assertions for running queues.
Namespace
Drupal\helper\TestsCode
protected function assertQueueSize($queue_name, $expected_size) {
$this
->assertSame($expected_size, \Drupal::queue($queue_name)
->numberOfItems());
}