function RulesComponentListBuilderTest::testRuleComponentPage
Tests that the rule component listing page is reachable.
File
-
tests/
src/ Functional/ RulesComponentListBuilderTest.php, line 50
Class
- RulesComponentListBuilderTest
- Tests that the Rules Component list builder pages work.
Namespace
Drupal\Tests\rules\FunctionalCode
public function testRuleComponentPage() {
$this->drupalLogin($this->adminUser);
$this->drupalGet('admin/config/workflow/rules/components');
/** @var \Drupal\Tests\WebAssert $assert */
$assert = $this->assertSession();
$assert->statusCodeEquals(200);
// Test that there is an empty rules component listing.
$assert->pageTextContains('No rules components have been defined.');
}