function AutoassignroleAdminRolePerPageTestCase::testAutoConfigAarBlock in Auto Assign Role 7
Same name and namespace in other branches
- 7.2 autoassignrole.test \AutoassignroleAdminRolePerPageTestCase::testAutoConfigAarBlock()
Validate that the block for this functionality exists on admin/config/people/autoassignrole.
File
- ./
autoassignrole.test, line 686 - Creates tests for auto assign role module.
Class
- AutoassignroleAdminRolePerPageTestCase
- Extend the DrupalWebTestCase.
Code
function testAutoConfigAarBlock() {
// Create a new user who can access the administration settings.
$this
->drupalLogin($this->admin_user);
// Check that the user can see a link to the auto settings.
$this
->drupalGet('admin/config/people/autoassignrole');
$this
->assertLink('Per Role Pages', 0, 'Allow user to define registration path to be assigned role(s) on admin/config/people/autoassignrole');
}