1 search.test SearchCommentTestCase::setRolePermissions($role_name, $access_comments = FALSE, $search_content = TRUE)

Set permissions for role.

File

core/modules/search/tests/search.test, line 877
Tests for search.module.

Class

SearchCommentTestCase
Test integration searching comments.

Code

function setRolePermissions($role_name, $access_comments = FALSE, $search_content = TRUE) {
  $permissions = array(
    'access comments' => $access_comments,
    'search content' => $search_content,
  );
  user_role_change_permissions($role_name, $permissions);
}