You are here

protected function WebformNodeUninstallTest::setUp in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_node/tests/src/Kernel/WebformNodeUninstallTest.php \Drupal\Tests\webform_node\Kernel\WebformNodeUninstallTest::setUp()

Overrides KernelTestBase::setUp

File

modules/webform_node/tests/src/Kernel/WebformNodeUninstallTest.php, line 29

Class

WebformNodeUninstallTest
Tests if webform nodes exist.

Namespace

Drupal\Tests\webform_node\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('webform');
  $this
    ->installEntitySchema('webform_submission');
  $this
    ->installSchema('webform', [
    'webform',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installConfig([
    'system',
    'node',
    'webform',
    'webform_node',
  ]);

  // For uninstall to work.
  $this
    ->installSchema('user', [
    'users_data',
  ]);
}