function RoleValidationTest::setUp
Same name in other branches
- 10 core/modules/user/tests/src/Kernel/RoleValidationTest.php \Drupal\Tests\user\Kernel\RoleValidationTest::setUp()
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
modules/ user/ tests/ src/ Kernel/ RoleValidationTest.php, line 25
Class
- RoleValidationTest
- Tests validation of user_role entities.
Namespace
Drupal\Tests\user\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installConfig('user');
$this->entity = Role::create([
'id' => 'test',
'label' => 'Test',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.