function UserTestBase::setUp
Same name in other branches
- 9 core/modules/user/tests/src/Functional/Views/UserTestBase.php \Drupal\Tests\user\Functional\Views\UserTestBase::setUp()
- 10 core/modules/user/tests/src/Functional/Views/UserTestBase.php \Drupal\Tests\user\Functional\Views\UserTestBase::setUp()
- 11.x 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 35
Class
- UserTestBase
- @todo.
Namespace
Drupal\Tests\user\Functional\ViewsCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
ViewTestData::createTestViews(get_class($this), [
'user_test_views',
]);
$this->users[] = $this->drupalCreateUser();
$this->users[] = User::load(1);
$this->nodes[] = $this->drupalCreateNode([
'uid' => $this->users[0]
->id(),
]);
$this->nodes[] = $this->drupalCreateNode([
'uid' => 1,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.