protected function ConditionTestDualUserTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/condition_test/src/Tests/ConditionTestDualUserTest.php \Drupal\condition_test\Tests\ConditionTestDualUserTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ tests/ modules/ condition_test/ src/ Tests/ ConditionTestDualUserTest.php, line 44 - Contains \Drupal\condition_test\Tests\ConditionTestDualUserTest.
Class
- ConditionTestDualUserTest
- Tests a condition that requires two users.
Namespace
Drupal\condition_test\TestsCode
protected function setUp() {
parent::setUp();
$this
->installSchema('system', 'sequences');
$this
->installEntitySchema('user');
$this->anonymous = User::create([
'uid' => 0,
]);
$this->authenticated = User::create([
'uid' => 1,
]);
}