protected function MetatagTest::getEntitiesDataArray in Entity Share 8.3
Same name and namespace in other branches
- 8.2 modules/entity_share_client/tests/src/Functional/MetatagTest.php \Drupal\Tests\entity_share_client\Functional\MetatagTest::getEntitiesDataArray()
Helper function to get a mapping of the entities data.
Used to create the entities for the test and to test that it has been recreated properly.
Overrides EntityShareClientFunctionalTestBase::getEntitiesDataArray
File
- modules/
entity_share_client/ tests/ src/ Functional/ MetatagTest.php, line 69
Class
- MetatagTest
- General functional test class for metatag field.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function getEntitiesDataArray() {
return [
'node' => [
'en' => [
'es_test' => $this
->getCompleteNodeInfos([
'status' => [
'value' => NodeInterface::PUBLISHED,
'checker_callback' => 'getValue',
],
'title' => [
'value' => 'Test title',
'checker_callback' => 'getValue',
],
'field_es_test_metatag' => [
'value' => serialize([
'abstract' => 'test abstract',
]),
'checker_callback' => 'getValue',
],
]),
],
],
];
}