You are here

public function UiPageTest::testReactionRulePage in Rules 8.3

Tests that the reaction rule listing page works.

File

tests/src/Functional/UiPageTest.php, line 29

Class

UiPageTest
Tests that the Rules UI pages are reachable.

Namespace

Drupal\Tests\rules\Functional

Code

public function testReactionRulePage() {
  $account = $this
    ->drupalCreateUser([
    'administer rules',
  ]);
  $this
    ->drupalLogin($account);
  $this
    ->drupalGet('admin/config/workflow/rules');

  /** @var \Drupal\Tests\WebAssert $assert */
  $assert = $this
    ->assertSession();
  $assert
    ->statusCodeEquals(200);

  // Test that there is an empty reaction rule listing.
  $assert
    ->pageTextContains('There are no enabled reaction rules.');
}