function AutoassignroleAdminAutoTestCase::testAutoConfigAarBlock in Auto Assign Role 7.2
Same name and namespace in other branches
- 7 autoassignrole.test \AutoassignroleAdminAutoTestCase::testAutoConfigAarBlock()
Validate that the block for this functionality exists on admin/config/people/autoassignrole.
File
- ./
autoassignrole.test, line 53 - Creates tests for auto assign role module.
Class
- AutoassignroleAdminAutoTestCase
- 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('Automatic', 0, 'Automatic link exists on admin/config/people/autoassignrole');
}