You are here

function tfa_test_login_create in Two-factor Authentication (TFA) 7.2

Create test login object.

Parameters

array $context: TFA context.

Return value

TfaTestLogin Created TfaTestLogin object.

File

tests/tfa_test.module, line 76
A mock module for testing TFA.

Code

function tfa_test_login_create(array $context) {
  $uid = variable_get('tfa_test_login_uid', '');
  return new TfaTestLogin($uid, $context);
}