You are here

protected function FeedsCSVtoUsersTest::feedsLoginUser in Feeds 7.2

Log in an imported user.

Parameters

string $username: The user's username.

string $password: The user's password.

3 calls to FeedsCSVtoUsersTest::feedsLoginUser()
FeedsCSVtoUsersTest::test in tests/feeds_processor_user.test
Test user creation, refreshing/deleting feeds and feed items.
FeedsCSVtoUsersTest::testMD5 in tests/feeds_processor_user.test
Test if users with md5 passwords can login after import.
FeedsCSVtoUsersTest::testSha512 in tests/feeds_processor_user.test
Test if users with sha512 passwords can login after import.

File

tests/feeds_processor_user.test, line 1065
Tests for plugins/FeedsUserProcessor.inc.

Class

FeedsCSVtoUsersTest
Test aggregating a feed as data records.

Code

protected function feedsLoginUser($username, $password) {
  $account = user_load_by_name($username);
  $this
    ->assertTrue($account, 'Imported user account loaded.');
  $account->pass_raw = $password;
  $this
    ->drupalLogin($account);
}