protected function PropertiesCompareTestCase::loginAdmin in Dynamic properties 7
Log in with administrative permissions.
Admin user is created on-demand.
Overrides PropertiesBaseTestCase::loginAdmin
1 call to PropertiesCompareTestCase::loginAdmin()
- PropertiesCompareTestCase::testPropertyFieldCreation in properties_compare/
properties_compare.test - Test comparing to similiar nodes.
File
- properties_compare/
properties_compare.test, line 36 - Contains tests for the properties_compare.module
Class
- PropertiesCompareTestCase
- Tests for fields integration.
Code
protected function loginAdmin() {
if (empty($this->admin)) {
$this->admin = $this
->drupalCreateUser(array(
'administer nodes',
'administer content types',
'administer blocks',
'create page content',
'edit any page content',
'administer properties attributes',
'administer properties categories',
'add properties attributes',
'add properties categories',
'compare properties',
));
}
$this
->drupalLogin($this->admin);
}