function UserControllerTest::setUp
Same name in other branches
- 9 core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php \Drupal\Tests\user\Kernel\Controller\UserControllerTest::setUp()
- 10 core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php \Drupal\Tests\user\Kernel\Controller\UserControllerTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ user/ tests/ src/ Kernel/ Controller/ UserControllerTest.php, line 47
Class
- UserControllerTest
- Tests for the User controller.
Namespace
Drupal\Tests\user\Kernel\ControllerCode
protected function setUp() : void {
parent::setUp();
$this->userController = UserController::create(\Drupal::getContainer());
// Create and log in a user.
$this->user = $this->setUpCurrentUser();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.