protected function ConfigDependenciesTest::setUp in Workbench Email 8
Same name and namespace in other branches
- 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\KernelCode
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();
}