function ActionsFormTest::setUp
Overrides BrowserTestBase::setUp
File
-
tests/
src/ Functional/ ActionsFormTest.php, line 40
Class
- ActionsFormTest
- Tests that each Rules Action 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');
}