You are here

protected function TmgmtExtensionSuitTestBase::isItemAddedToQueue in TMGMT Extension Suite 8

Checks if job was added to a queue.

Parameters

$queue:

$jobId:

Return value

mixed

4 calls to TmgmtExtensionSuitTestBase::isItemAddedToQueue()
CheckEntityChangesTest::testDoNotTrackTranslatableEntityChanges in src/Tests/CheckEntityChangesTest.php
Test "Track changes of the translatable entities" feature is turned off.
CheckEntityChangesTest::testTrackTranslatableEntityChanges in src/Tests/CheckEntityChangesTest.php
Test "Track changes of the translatable entities" feature is turned on.
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.

File

src/Tests/TmgmtExtensionSuitTestBase.php, line 200

Class

TmgmtExtensionSuitTestBase
Basic class for tmgmt extension module.

Namespace

Drupal\tmgmt_extension_suit\Tests

Code

protected function isItemAddedToQueue($queue, $jobId) {
  return Drupal::database()
    ->select('queue', 'q')
    ->condition('q.name', $queue)
    ->condition('q.data', "a:1:{s:2:\"id\";i:{$jobId};}")
    ->countQuery()
    ->execute()
    ->fetchField();
}