public function SearchByPageAttachUploadsTest::setUpUsers in Search by Page 6
Sets up superuser and low-privilege user.
Assumes environments have been set up first.
Parameters
$env: Search by Page environment ID to set up permissions for.
2 calls to SearchByPageAttachUploadsTest::setUpUsers()
- SearchbyPageAttachUploads2Test::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.…
- SearchByPageAttachUploadsTest::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.…
1 method overrides SearchByPageAttachUploadsTest::setUpUsers()
- SearchByPageAttachCCKTest::setUpUsers in tests/
search_by_page.test - Sets up superuser and low-privilege user.
File
- tests/
search_by_page.test, line 2110 - Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com
Class
- SearchByPageAttachUploadsTest
- Functionality test 1 for Search by Page Attachments with Uploads 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',
'view uploaded files',
'administer search_files configuration',
'upload files',
'access site reports',
));
$this->noprivuser = $this
->drupalCreateUser(array(
'access content',
$this
->searchPerm($env),
'search content',
));
$this
->drupalLogin($this->superuser);
}