function UiPageTest::testReactionRulePage

Tests that the reaction rule listing page is reachable.

File

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

Class

UiPageTest
Tests that the Reaction Rules list builder pages work.

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