protected function GoogleNewsBaseTestCase::loginUser1 in Google News sitemap 7
Log in as user 1.
1 call to GoogleNewsBaseTestCase::loginUser1()
- GoogleNewsBaseTestCase::setUp in tests/
GoogleNewsBaseTestCase.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
GoogleNewsBaseTestCase.test, line 45 - Base test class for other GoogleNews tests to expand upon.
Class
- GoogleNewsBaseTestCase
- Base test class for other GoogleNews tests to expand upon.
Code
protected function loginUser1() {
$password = user_password();
// Reset the user 1 password.
$account = user_load(1);
$edit = array(
'pass' => $password,
);
$account = user_save($account, $edit);
$account->pass_raw = $password;
// Log in as user 1.
$this
->drupalLogin($account);
}