function DeleteMultipleFormTest::setUp

Same name in other branches
  1. 8.9.x core/tests/Drupal/FunctionalTests/Entity/DeleteMultipleFormTest.php \Drupal\FunctionalTests\Entity\DeleteMultipleFormTest::setUp()
  2. 10 core/tests/Drupal/FunctionalTests/Entity/DeleteMultipleFormTest.php \Drupal\FunctionalTests\Entity\DeleteMultipleFormTest::setUp()
  3. 11.x core/tests/Drupal/FunctionalTests/Entity/DeleteMultipleFormTest.php \Drupal\FunctionalTests\Entity\DeleteMultipleFormTest::setUp()

Overrides BrowserTestBase::setUp

File

core/tests/Drupal/FunctionalTests/Entity/DeleteMultipleFormTest.php, line 42

Class

DeleteMultipleFormTest
Tests the delete multiple confirmation form.

Namespace

Drupal\FunctionalTests\Entity

Code

protected function setUp() : void {
    parent::setUp();
    EntityTestBundle::create([
        'id' => 'default',
        'label' => 'Default',
    ])->save();
    $this->account = $this->drupalCreateUser([
        'administer entity_test content',
    ]);
    $this->drupalLogin($this->account);
}

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