protected function NodeReferenceTest::findEntityUuid in Acquia Content Hub 8
Finds an entity uuid in the output json array.
Parameters
string $uuid: The Entity UUID to search.
array $entities: The array of entities converted from the json output.
Return value
bool TRUE if the Entity UUID was found, FALSE otherwise.
1 call to NodeReferenceTest::findEntityUuid()
- NodeReferenceTest::testNodeReferences in tests/
src/ Functional/ NodeReferenceTest.php - Configure content hub node form.
File
- tests/
src/ Functional/ NodeReferenceTest.php, line 146
Class
- NodeReferenceTest
- Test Acquia Content Hub node reference.
Namespace
Drupal\Tests\acquia_contenthub\FunctionalCode
protected function findEntityUuid($uuid, array $entities) {
foreach ($entities['entities'] as $entity) {
if ($entity['uuid'] == $uuid) {
return TRUE;
}
}
return FALSE;
}