protected function NodeFieldOverridesTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Kernel/NodeFieldOverridesTest.php \Drupal\Tests\node\Kernel\NodeFieldOverridesTest::setUp()
- 9 core/modules/node/tests/src/Kernel/NodeFieldOverridesTest.php \Drupal\Tests\node\Kernel\NodeFieldOverridesTest::setUp()
File
- core/
modules/ node/ tests/ src/ Kernel/ NodeFieldOverridesTest.php, line 35
Class
- NodeFieldOverridesTest
- Tests node field overrides.
Namespace
Drupal\Tests\node\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installConfig([
'user',
]);
$this->user = $this
->createUser();
\Drupal::service('current_user')
->setAccount($this->user);
}