function CasAttributesTestCase::setUp in CAS Attributes 6.3
Same name and namespace in other branches
- 7 cas_attributes.test \CasAttributesTestCase::setUp()
Helper class for CAS tests.
Creates an administrative user and downloads phpCAS.
Overrides CasAttributesTestHelper::setUp
File
- ./
cas_attributes.test, line 69 - Tests for CAS Attributes.
Class
- CasAttributesTestCase
- Test case for CAS attribute setting.
Code
function setUp() {
parent::setUp(array(
'profile',
));
$this
->drupalLogin($this->admin_user);
foreach (array(
'test_user_memberof',
'test_user_name',
) as $field_name) {
$edit = array(
'category' => 'Test',
'title' => t('Some user field called @field_name', array(
'@field_name' => $field_name,
)),
'name' => $field_name,
);
$this
->drupalPost('admin/user/profile/add/textfield', $edit, t('Save field'));
}
$this
->drupalLogout();
}