function SecurePagesTestCase::loginHTTPS in Secure Pages 7
Same name and namespace in other branches
- 8 securepages.test \SecurePagesTestCase::loginHTTPS()
- 6.2 securepages.test \SecurePagesTestCase::loginHTTPS()
- 6 securepages.test \SecurePagesTestCase::loginHTTPS()
Logs in a user using HTTPS.
2 calls to SecurePagesTestCase::loginHTTPS()
- SecurePagesTestCase::_testRoles in ./
securepages.test - Test role-based switching.
- SecurePagesTestCase::_testSettingsForm in ./
securepages.test - Test submitting the settings form.
File
- ./
securepages.test, line 376 - Provides SimpleTests for Secure Pages module.
Class
- SecurePagesTestCase
- @file Provides SimpleTests for Secure Pages module.
Code
function loginHTTPS($user) {
$edit = array(
'name' => $user->name,
'pass' => $user->pass_raw,
);
$this
->drupalPost('user', $edit, t('Log in'), array(
'https' => TRUE,
));
}