You are here

public function SearchByPageAttachCCKTest::setUpUsers in Search by Page 6

Sets up superuser and low-privilege user.

Overrides SearchByPageAttachUploadsTest::setUpUsers

4 calls to SearchByPageAttachCCKTest::setUpUsers()
SearchbyPageAttachCCK2Test::setUp in tests/search_by_page.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
SearchByPageAttachCCKTest::setUp in tests/search_by_page.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
SearchbyPageAttachNotReadable::setUp in tests/search_by_page.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
SearchbyPageAttachReindexTest::setUp in tests/search_by_page.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

File

tests/search_by_page.test, line 2369
Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com

Class

SearchByPageAttachCCKTest
Functionality test 1 for Search by Page Attachments with CCK module.

Code

public function setUpUsers($env) {
  $this->superuser = $this
    ->drupalCreateUser(array(
    'administer nodes',
    'access content',
    'administer content types',
    'administer blocks',
    'administer search',
    'search content',
    'administer search by page',
    'access administration pages',
    $this
      ->searchPerm($env),
    'administer site configuration',
    'administer users',
    'administer permissions',
    'view test private content',
    'administer search_files configuration',
    'access site reports',
  ));
  $this->noprivuser = $this
    ->drupalCreateUser(array(
    'access content',
    $this
      ->searchPerm($env),
    'search content',
  ));
  $this
    ->drupalLogin($this->superuser);
}