protected function WebformNodeUninstallTest::setUp in Webform 6.x
Same name and namespace in other branches
- 8.5 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\KernelCode
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',
]);
}