You are here

protected function MultilingualTest::getEntitiesDataArray in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/tests/src/Functional/MultilingualTest.php \Drupal\Tests\entity_share_client\Functional\MultilingualTest::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/MultilingualTest.php, line 55

Class

MultilingualTest
General functional test class for multilingual scenarios.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function getEntitiesDataArray() {
  return [
    'node' => [
      'en' => [
        'es_test' => $this
          ->getCompleteNodeInfos([
          'status' => [
            'value' => NodeInterface::PUBLISHED,
            'checker_callback' => 'getValue',
          ],
        ]),
      ],
      'fr' => [
        'es_test' => $this
          ->getCompleteNodeInfos([
          'status' => [
            'value' => NodeInterface::PUBLISHED,
            'checker_callback' => 'getValue',
          ],
        ]),
      ],
    ],
  ];
}