protected function QuickNodeCloneExcludeNodeFieldsTest::setUp in Quick Node Clone 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ QuickNodeCloneExcludeNodeFieldsTest.php, line 38
Class
- QuickNodeCloneExcludeNodeFieldsTest
- Tests node cloning excluding node fields.
Namespace
Drupal\Tests\quick_node_clone\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create admin user.
$this->adminUser = $this
->drupalCreateUser([
'access administration pages',
'Administer Quick Node Clone Settings',
'clone page content',
'create page content',
]);
// Since we don't have ajax here, we need to set the config manually then
// test the form.
\Drupal::configFactory()
->getEditable('quick_node_clone.settings')
->set('exclude.node.page', [
'body',
])
->save();
}