You are here

protected function CliTest::getEntitiesDataArray in Entity Share 8.2

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/CliTest.php, line 62

Class

CliTest
General functional test class for CLI integration.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

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