Commit f2e3b9cc authored by hass's avatar hass
Browse files

Permission required for tests

parent 3490c616
......@@ -29,6 +29,7 @@ class RealnameBasicTest extends DrupalWebTestCase {
$permissions = array(
'access administration pages',
'administer fields',
'administer modules',
'administer realname',
'administer site configuration',
......@@ -106,14 +107,14 @@ class RealnameBasicTest extends DrupalWebTestCase {
public function testRealnameManageDisplay() {
$edit['realname_pattern'] = '[user:name-raw]';
$this->drupalPost('admin/config/people/realname', $edit, t('Save configuration'));
//$this->assertResponse(200);
$this->assertResponse(200);
$this->drupalGet('admin/config/people/accounts/fields');
//$this->assertResponse(403);
$this->assertResponse(403);
$this->assertNoRaw('Real name', '[testRealnameManageDisplay]: Real name field not shown in manage fields list.');
$this->drupalGet('admin/config/people/accounts/display');
//$this->assertResponse(200);
$this->assertResponse(200);
$this->assertRaw('Real name', '[testRealnameManageDisplay]: Real name field shown in manage display.');
$this->drupalGet('user/' . $this->admin_user->uid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment