You are here

function DrupalApacheSolrNodeAccess::setUp in Apache Solr Search 5

Same name and namespace in other branches
  1. 8 apachesolr_access/tests/apachesolr_access.test \DrupalApacheSolrNodeAccess::setUp()
  2. 6.3 apachesolr_access/tests/apachesolr_access.test \DrupalApacheSolrNodeAccess::setUp()
  3. 6 contrib/apachesolr_nodeaccess/tests/apachesolr_nodeaccess.test \DrupalApacheSolrNodeAccess::setUp()
  4. 6.2 contrib/apachesolr_nodeaccess/tests/apachesolr_nodeaccess.test \DrupalApacheSolrNodeAccess::setUp()
  5. 7 apachesolr_access/tests/apachesolr_access.test \DrupalApacheSolrNodeAccess::setUp()

File

contrib/apachesolr_nodeaccess/tests/apachesolr_nodeaccess.test, line 12

Class

DrupalApacheSolrNodeAccess

Code

function setUp() {
  parent::setUp("nodeaccess", "apachesolr", "apachesolr_search", "apachesolr_nodeaccess");
  print_r($this);

  // Create a basic user, which is subject to moderation.
  $permissions = array(
    'access content',
    'create page content',
    'edit own page content',
    'create story content',
    'edit own story content',
  );
  $this->basic_user = $this
    ->drupalCreateUserRolePerm($permissions);
}