You are here

protected function ConditionsFormTest::setUp in Rules 8.3

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ConditionsFormTest.php, line 40

Class

ConditionsFormTest
Tests that each Rules Condition can be editted.

Namespace

Drupal\Tests\rules\Functional

Code

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);
}