public function UiRoleExpireTest::testRoleExpireAdminPage in Role Expire 2.x
Same name and namespace in other branches
- 8 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/people/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');
}