You are here

protected function OgDeleteOrphansTest::process in Organic groups 8

Processes the given queue.

Parameters

string $queue_id: The ID of the queue to process.

string $plugin_id: The ID of the plugin that is responsible for processing the queue.

1 call to OgDeleteOrphansTest::process()
OgDeleteOrphansTest::testDeleteOrphans in tests/src/Kernel/OgDeleteOrphansTest.php
Tests that orphaned group content is deleted when the group is deleted.

File

tests/src/Kernel/OgDeleteOrphansTest.php, line 270

Class

OgDeleteOrphansTest
Tests deletion of orphaned group content and memberships.

Namespace

Drupal\Tests\og\Kernel

Code

protected function process($queue_id, $plugin_id) {

  /** @var \Drupal\og\OgDeleteOrphansInterface $plugin */
  $plugin = $this->ogDeleteOrphansPluginManager
    ->createInstance($plugin_id, []);
  while ($this
    ->getQueueCount($queue_id) > 0) {
    $plugin
      ->process();
  }
}