You are here

function AutoassignroleAdminRolePerPageTestCase::testAutoConfigAarBlock in Auto Assign Role 7.2

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

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

File

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

Class

AutoassignroleAdminRolePerPageTestCase
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('Per Role Pages', 0, 'Allow user to define registration path to be assigned role(s) on admin/config/people/autoassignrole');
}