public function UiRoleExpireTest::testRoleExpireAdminPage in Role Expire 8
Same name and namespace in other branches
- 2.x tests/src/Functional/UiRoleExpireTest.php \Drupal\Tests\role_expire\Functional\UiRoleExpireTest::testRoleExpireAdminPage()
Tests that users can assign a default role after a role expires.
File
- tests/
src/ Functional/ UiRoleExpireTest.php, line 47
Class
- UiRoleExpireTest
- Tests that the Role expire interface is available.
Namespace
Drupal\Tests\role_expire\FunctionalCode
public function testRoleExpireAdminPage() {
$account = $this
->drupalCreateUser([
'administer role expire',
]);
$this
->drupalLogin($account);
$this
->drupalGet('admin/config/system/role-expire');
$this
->assertSession()
->statusCodeEquals(200);
// Test that we can set default roles after a roles expires.
$this
->assertSession()
->pageTextContains('Role to assign after the role');
}