function QuickEditLoadingTest::setUp

Same name in this branch
  1. 9 core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditLoadingTest::setUp()
Same name in other branches
  1. 8.9.x core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditLoadingTest::setUp()
  2. 8.9.x 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 and lazy loading of in-place editors.

Namespace

Drupal\Tests\quickedit\Kernel

Code

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',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.