protected function LinkFieldTest::getExpectedInternalLinkValue in Entity Share 8.2
Same name and namespace in other branches
- 8.3 modules/entity_share_client/tests/src/Functional/LinkFieldTest.php \Drupal\Tests\entity_share_client\Functional\LinkFieldTest::getExpectedInternalLinkValue()
Helper function.
After the value_callback is re-evaluated, the nid will be changed. So need a specific checker_callback.
After recreation, the node wih UUID es_test will have nid 6.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity.
string $field_name: The field to retrieve the value.
Return value
array The expected value after import.
File
- modules/
entity_share_client/ tests/ src/ Functional/ LinkFieldTest.php, line 168
Class
- LinkFieldTest
- Functional test class for link field.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function getExpectedInternalLinkValue(ContentEntityInterface $entity, string $field_name) {
return [
[
'uri' => 'entity:node/6',
],
];
}