protected function SpacesOGTestCase::loginSimpleUser in Spaces 7.3
Same name and namespace in other branches
- 6.3 spaces_og/tests/spaces_og.test \SpacesOGTestCase::loginSimpleUser()
- 7 spaces_og/tests/spaces_og.test \SpacesOGTestCase::loginSimpleUser()
Login a user with editing permissions.
3 calls to SpacesOGTestCase::loginSimpleUser()
- SpacesOGTestAccess::testAccess in spaces_og/
tests/ spaces_og.test - Test access control lists. The purpose of this test is to verify that spaces presets result in proper OG settings. Further, resulting access grants and denies are tested to catch changes in OG API that potentially break assumed access walls.
- SpacesOGTestAutocomplete::testAutocomplete in spaces_og/
tests/ spaces_og.test - Test autocomplete.
- SpacesOGTestRouter::testRouter in spaces_og/
tests/ spaces_og.test - Test router.
File
- spaces_og/
tests/ spaces_og.test, line 134
Class
- SpacesOGTestCase
- Base test class for Spaces OG tests.
Code
protected function loginSimpleUser() {
if (empty($this->simple_user)) {
$this->simple_user = $this
->drupalCreateUser(array(
'access user profiles',
'access comments',
'post comments',
'post comments without approval',
'access content',
'create features_test content',
'edit own features_test content',
'delete own features_test content',
));
}
$this
->drupalLogin($this->simple_user);
}