You are here

protected function TmgmtExtensionSuitTestBase::getCountOfItemsInQueue in TMGMT Extension Suite 8

Returns amount of items in a given queue.

Parameters

string $queueName:

Return value

mixed

4 calls to TmgmtExtensionSuitTestBase::getCountOfItemsInQueue()
CheckStatusTest::testCheckStatus in src/Tests/CheckStatusTest.php
Test tmgmt_extension_suit_add_to_check_status() function.
RequestBulkTranslationTest::testRequestBulkTranslation in src/Tests/RequestBulkTranslationTest.php
Test request bulk translation.
RequestBulkTranslationTest::testRequestBulkTranslationSkippingNodeInOneLanguage in src/Tests/RequestBulkTranslationTest.php
Test request bulk translation with conflicting item.
RequestBulkTranslationTest::testRequestBulkTranslationSkippingNodeInTwoLanguages in src/Tests/RequestBulkTranslationTest.php
Test request bulk translation with conflicting items.

File

src/Tests/TmgmtExtensionSuitTestBase.php, line 184

Class

TmgmtExtensionSuitTestBase
Basic class for tmgmt extension module.

Namespace

Drupal\tmgmt_extension_suit\Tests

Code

protected function getCountOfItemsInQueue($queueName) {
  return Drupal::database()
    ->select('queue', 'q')
    ->condition('q.name', $queueName)
    ->countQuery()
    ->execute()
    ->fetchField();
}