You are here

public function WebformSubmissionImportExportTest::setUp in Acquia Content Hub 8.2

Throws

\Exception

Overrides ImportExportTestBase::setUp

File

tests/src/Kernel/WebformSubmissionImportExportTest.php, line 44

Class

WebformSubmissionImportExportTest
Tests for Webform submission syndication.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installSchema('webform', [
    'webform',
  ]);
  $this
    ->installConfig('webform');
  $this
    ->installEntitySchema('webform_submission');
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->installEntitySchema('path_alias');

  // Necessary to avoid errors when collecting path alias dependencies.
  $this
    ->setUpCurrentUser();

  // Adding changed date to list of properties
  // to be stripped out of export tests.
  // @todo Syndicate webform submission change dates correctly.
  static::$normalizeList[] = 'changed';
}