You are here

function AutoassignroleAdminUserTestCase::testAutoConfigBlock in Auto Assign Role 7

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

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

File

./autoassignrole.test, line 220
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');
}