protected function EntityShareAsyncFunctionalTest::getEntitiesDataArray in Entity Share 8.3
Same name and namespace in other branches
- 8.2 modules/entity_share_async/tests/src/Functional/EntityShareAsyncFunctionalTest.php \Drupal\Tests\entity_share_async\Functional\EntityShareAsyncFunctionalTest::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_async/ tests/ src/ Functional/ EntityShareAsyncFunctionalTest.php, line 51
Class
- EntityShareAsyncFunctionalTest
- General functional test class.
Namespace
Drupal\Tests\entity_share_async\FunctionalCode
protected function getEntitiesDataArray() {
return [
'node' => [
'en' => [
'es_test' => $this
->getCompleteNodeInfos([
'status' => [
'value' => NodeInterface::PUBLISHED,
'checker_callback' => 'getValue',
],
]),
'es_test_not_asynced' => $this
->getCompleteNodeInfos([
'status' => [
'value' => NodeInterface::PUBLISHED,
'checker_callback' => 'getValue',
],
]),
],
],
];
}