You are here

function AutoassignroleAdminUserTestCase::testAutoConfigAarBlock in Auto Assign Role 7.2

Same name and namespace in other branches
  1. 7 autoassignrole.test \AutoassignroleAdminUserTestCase::testAutoConfigAarBlock()

Validate that the block for this functionality exists on admin/config/people/autoassignrole.

File

./autoassignrole.test, line 234
Creates tests for auto assign role module.

Class

AutoassignroleAdminUserTestCase
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('User choice', 0, 'Allow user to choose link exists on admin/config/people/autoassignrole');
}