You are here

protected function ConfigDependenciesTest::setUp in Workbench Email 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/ConfigDependenciesTest.php \Drupal\Tests\workbench_email\Kernel\ConfigDependenciesTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/ConfigDependenciesTest.php, line 52

Class

ConfigDependenciesTest
Defines a class for testing config dependencies.

Namespace

Drupal\Tests\workbench_email\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installConfig([
    'node',
    'workbench_moderation',
    'workbench_email',
    'system',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('system', [
    'key_value',
    'sequences',
  ]);
  $node_type = $this
    ->createContentType([
    'type' => 'test',
  ]);
  $this
    ->setUpModerationForNodeType($node_type);
  $this
    ->setUpEmailFieldForNodeBundle();
  $this->editorRole = Role::create([
    'id' => 'editor',
  ]);
  $this->editorRole
    ->save();
  $this->template = $this
    ->setUpTemplate();
}