function DevelQueryDebugTest::setUp
Same name in other branches
- 4.x tests/src/Kernel/DevelQueryDebugTest.php \Drupal\Tests\devel\Kernel\DevelQueryDebugTest::setUp()
Overrides KernelTestBase::setUp
File
-
tests/
src/ Kernel/ DevelQueryDebugTest.php, line 34
Class
- DevelQueryDebugTest
- Tests query debug.
Namespace
Drupal\Tests\devel\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installSchema('system', 'sequences');
$this->installConfig([
'system',
'devel',
]);
$this->installEntitySchema('user');
$devel_role = Role::create([
'id' => 'admin',
'label' => 'Admin',
'permissions' => [
'access devel information',
],
]);
$devel_role->save();
$this->develUser = User::create([
'name' => $this->randomMachineName(),
'roles' => [
$devel_role->id(),
],
]);
$this->develUser
->save();
}