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