protected function QuickEditLoadingTest::setUp in Drupal 9
Same name in this branch
- 9 core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditLoadingTest::setUp()
- 9 core/modules/quickedit/tests/src/Kernel/QuickEditLoadingTest.php \Drupal\Tests\quickedit\Kernel\QuickEditLoadingTest::setUp()
Same name and namespace in other branches
- 8 core/modules/quickedit/tests/src/Kernel/QuickEditLoadingTest.php \Drupal\Tests\quickedit\Kernel\QuickEditLoadingTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ quickedit/ tests/ src/ Kernel/ QuickEditLoadingTest.php, line 47
Class
- QuickEditLoadingTest
- Tests loading of in-place editing functionality and lazy loading of its in-place editors.
Namespace
Drupal\Tests\quickedit\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installSchema('system', 'sequences');
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installConfig([
'field',
'filter',
'node',
]);
// Create a Content type and one test node.
$this
->createContentType([
'type' => 'page',
]);
$this
->createNode();
$this->editorUser = $this
->createUser([
'access content',
'create page content',
'edit any page content',
'access contextual links',
'access in-place editing',
]);
}