function RoleValidationTest::setUp
Same name in other branches
- 11.x 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 26
Class
- RoleValidationTest
- Tests validation of user_role entities.
Namespace
Drupal\Tests\user\KernelCode
protected function setUp() : void {
parent::setUp();
$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.