protected function NullifyQueueIdTest::getQueueId in Acquia Content Hub 8.2
Fetch "queue_id".
Parameters
int $entity_id: Entity Id.
string $status: Status of the entity.
Return value
mixed The queue id.
1 call to NullifyQueueIdTest::getQueueId()
- NullifyQueueIdTest::testQueueIdNullification in tests/
src/ Kernel/ NullifyQueueIdTest.php - Test "queue_id" nullification when entities loose their queued state.
File
- tests/
src/ Kernel/ NullifyQueueIdTest.php, line 222
Class
- NullifyQueueIdTest
- Tests the NullifyQueueId class.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
protected function getQueueId($entity_id, $status) {
$query = \Drupal::database()
->select(self::TABLE_NAME, 't');
$query
->fields('t', [
'queue_id',
]);
$query
->condition('entity_id', $entity_id);
$query
->condition('status', $status);
return $query
->execute()
->fetchCol();
}