protected function ContentTypePermissionsTest::setUp in Lightning Layout 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ContentTypePermissionsTest.php, line 30
Class
- ContentTypePermissionsTest
- Tests content type-related permission handling in Lightning Layout.
Namespace
Drupal\Tests\lightning_layout\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
/** @var \Drupal\user\RoleInterface $role */
$role = Config::forModule('lightning_layout')
->optional()
->getEntity('user_role', 'layout_manager');
$role
->unsetThirdPartySetting('lightning', 'bundled')
->save();
}