protected function OgDeleteOrphansTest::getQueueCount in Organic groups 8
Returns the number of items a given queue contains.
Parameters
string $queue_id: The ID of the queue for which to count the items.
2 calls to OgDeleteOrphansTest::getQueueCount()
- OgDeleteOrphansTest::assertQueueCount in tests/
src/ Kernel/ OgDeleteOrphansTest.php - Checks that the given queue contains the expected number of items.
- OgDeleteOrphansTest::process in tests/
src/ Kernel/ OgDeleteOrphansTest.php - Processes the given queue.
File
- tests/
src/ Kernel/ OgDeleteOrphansTest.php, line 235
Class
- OgDeleteOrphansTest
- Tests deletion of orphaned group content and memberships.
Namespace
Drupal\Tests\og\KernelCode
protected function getQueueCount($queue_id) {
return $this->container
->get('queue')
->get($queue_id)
->numberOfItems();
}