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