You are here

protected function UserTestBase::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/Views/UserTestBase.php \Drupal\Tests\user\Functional\Views\UserTestBase::setUp()
  2. 9 core/modules/user/tests/src/Functional/Views/UserTestBase.php \Drupal\Tests\user\Functional\Views\UserTestBase::setUp()

Overrides ViewTestBase::setUp

1 call to UserTestBase::setUp()
AccessTestBase::setUp in core/modules/user/tests/src/Functional/Views/AccessTestBase.php
1 method overrides UserTestBase::setUp()
AccessTestBase::setUp in core/modules/user/tests/src/Functional/Views/AccessTestBase.php

File

core/modules/user/tests/src/Functional/Views/UserTestBase.php, line 34

Class

UserTestBase
@todo.

Namespace

Drupal\Tests\user\Functional\Views

Code

protected function setUp($import_test_views = TRUE, $modules = [
  'user_test_views',
]) : void {
  parent::setUp($import_test_views, $modules);
  $this->users[] = $this
    ->drupalCreateUser();
  $this->users[] = User::load(1);
  $this->nodes[] = $this
    ->drupalCreateNode([
    'uid' => $this->users[0]
      ->id(),
  ]);
  $this->nodes[] = $this
    ->drupalCreateNode([
    'uid' => 1,
  ]);
}