protected function UpdatePublishedTest::getStatusByUuid in Acquia Content Hub 8.2
Fetch entity status.
Parameters
string $uuid: Entity uuid.
Return value
string Export status.
1 call to UpdatePublishedTest::getStatusByUuid()
- UpdatePublishedTest::testUpdatePublished in tests/
src/ Kernel/ EventSubscriber/ HandleWebhook/ UpdatePublishedTest.php - Tests entity updated status.
File
- tests/
src/ Kernel/ EventSubscriber/ HandleWebhook/ UpdatePublishedTest.php, line 167
Class
- UpdatePublishedTest
- Tests entity updated published status.
Namespace
Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\HandleWebhookCode
protected function getStatusByUuid(string $uuid) : string {
return $this->database
->select('acquia_contenthub_publisher_export_tracking', 'acpet')
->fields('acpet', [
'status',
])
->condition('acpet.entity_uuid', $uuid)
->execute()
->fetchField();
}