You are here

protected function OgDeleteOrphansTest::assertQueueCount in Organic groups 8

Checks that the given queue contains the expected number of items.

Parameters

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

int $count: The expected number of items in the queue.

2 calls to OgDeleteOrphansTest::assertQueueCount()
OgDeleteOrphansTest::testDeleteOrphans in tests/src/Kernel/OgDeleteOrphansTest.php
Tests that orphaned group content is deleted when the group is deleted.
OgDeleteOrphansTest::testDisabled in tests/src/Kernel/OgDeleteOrphansTest.php
Tests that orphaned content is not deleted when the option is disabled.

File

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

Class

OgDeleteOrphansTest
Tests deletion of orphaned group content and memberships.

Namespace

Drupal\Tests\og\Kernel

Code

protected function assertQueueCount($queue_id, $count) {
  $this
    ->assertEquals($count, $this
    ->getQueueCount($queue_id));
}