protected function ConfigureAndExecuteTest::setUp in Rules 8.3
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ConfigureAndExecuteTest.php, line 38
Class
- ConfigureAndExecuteTest
- Tests that a rule can be configured and triggered when a node is 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([
'create article content',
'edit any article content',
'administer rules',
'administer site configuration',
]);
}