function DevelQueryDebugTest::setUp
Same name in other branches
- 8.x-1.x tests/src/Kernel/DevelQueryDebugTest.php \Drupal\Tests\devel\Kernel\DevelQueryDebugTest::setUp()
- 5.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() {
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();
}