function ConditionsFormTest::setUp
Overrides BrowserTestBase::setUp
File
-
tests/
src/ Functional/ ConditionsFormTest.php, line 40
Class
- ConditionsFormTest
- Tests that each Rules Condition can be edited.
Namespace
Drupal\Tests\rules\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create an article content type that we will use for testing.
$type = $this->container
->get('entity_type.manager')
->getStorage('node_type')
->create([
'type' => 'article',
'name' => 'Article',
]);
$type->save();
$this->account = $this->drupalCreateUser([
'administer rules',
'administer site configuration',
]);
$this->drupalLogin($this->account);
// Create a named role for use in conditions and actions.
$this->createRole([
'administer nodes',
], 'test-editor', 'Test Editor');
}