You are here

protected function FieldDropButtonTest::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php \Drupal\Tests\views\Functional\Handler\FieldDropButtonTest::setUp()
  2. 10 core/modules/views/tests/src/Kernel/Handler/FieldDropbuttonTest.php \Drupal\Tests\views\Kernel\Handler\FieldDropbuttonTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php \Drupal\Tests\views\Functional\Handler\FieldDropButtonTest::setUp()
  2. 9 core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php \Drupal\Tests\views\Functional\Handler\FieldDropButtonTest::setUp()

File

core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php, line 37

Class

FieldDropButtonTest
Tests the dropbutton field handler.

Namespace

Drupal\Tests\views\Functional\Handler

Code

protected function setUp($import_test_views = TRUE, $modules = [
  'views_test_config',
]) : void {
  parent::setUp($import_test_views, $modules);
  $admin_user = $this
    ->drupalCreateUser([
    'access content overview',
    'administer nodes',
    'bypass node access',
  ]);
  $this
    ->drupalLogin($admin_user);
}