You are here

public function AnswersTaxonomyTestCase::testDefaultPermissions in Answers 7.4

Tests permissions for default roles.

File

answers_taxonomy/answers_taxonomy.test, line 70
Tests for answers.module.

Class

AnswersTaxonomyTestCase
Tests the functionality of the answers_userpoints module admin settings.

Code

public function testDefaultPermissions() {
  $admin = $this
    ->drupalCreateUser(array(
    'administer permissions',
  ));
  $this
    ->drupalLogin($admin);
  $this
    ->drupalGet('admin/people/permissions');

  // Authenticated Users.
  $this
    ->assertFieldChecked('edit-3-edit-terms-in-1', "Administer role has edit term.");
  $this
    ->assertFieldChecked('edit-3-delete-terms-in-1', "Administer role has delete term.");
}