You are here

function AutoassignroleAdminAutoTestCase::testAutoConfigBlock in Auto Assign Role 7

Same name and namespace in other branches
  1. 7.2 autoassignrole.test \AutoassignroleAdminAutoTestCase::testAutoConfigBlock()

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

File

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

Class

AutoassignroleAdminAutoTestCase
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 role assignment link exists on admin/config/people');
}