You are here

protected function EntityNotTranslatableTest::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/EntityNotTranslatableTest.php, line 59

Class

EntityNotTranslatableTest
Test class for untranslatable entities.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function getEntitiesDataArray() {
  return [
    'entity_test_not_translatable' => [
      LanguageInterface::LANGCODE_NOT_SPECIFIED => [
        'entity_test_not_translatable' => [
          'name' => [
            'value' => $this
              ->randomString(),
            'checker_callback' => 'getValue',
          ],
        ],
      ],
    ],
  ];
}