mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 15:52:24 +02:00
N°6171 - Password Expiration: can expire mode has no effect on user who have never changed their password - fix test
This commit is contained in:
@@ -351,32 +351,32 @@ class UserLocalTest extends ItopDataTestCase
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'EXPIRE_CAN: nominal case' => array(
|
'EXPIRE_CAN: nominal case' => array(
|
||||||
'sExpirationMode' => UserLocal::EXPIRE_CAN,
|
'sExpirationMode' => 'can_expire',
|
||||||
'oExpectedBefore' => null,
|
'oExpectedBefore' => null,
|
||||||
'bRenewedDateTouched' => true,
|
'bRenewedDateTouched' => true,
|
||||||
),
|
),
|
||||||
'EXPIRE_NEVER (default mode): nothing changed on UserLocal' => array(
|
'EXPIRE_NEVER (default mode): nothing changed on UserLocal' => array(
|
||||||
'sExpirationMode' => UserLocal::EXPIRE_NEVER,
|
'sExpirationMode' => 'never_expire',
|
||||||
'oExpectedBefore' => null,
|
'oExpectedBefore' => null,
|
||||||
'bRenewedDateTouched' => false,
|
'bRenewedDateTouched' => false,
|
||||||
),
|
),
|
||||||
'EXPIRE_FORCE: nominal case' => array(
|
'EXPIRE_FORCE: nominal case' => array(
|
||||||
'sExpirationMode' => UserLocal::EXPIRE_FORCE,
|
'sExpirationMode' => 'force_expire',
|
||||||
'oExpectedBefore' => null,
|
'oExpectedBefore' => null,
|
||||||
'bRenewedDateTouched' => true,
|
'bRenewedDateTouched' => true,
|
||||||
),
|
),
|
||||||
'EXPIRE_ONE_TIME_PWD: nominal case' => array(
|
'EXPIRE_ONE_TIME_PWD: nominal case' => array(
|
||||||
'sExpirationMode' => UserLocal::EXPIRE_ONE_TIME_PWD,
|
'sExpirationMode' => 'otp_expire',
|
||||||
'oExpectedBefore' => null,
|
'oExpectedBefore' => null,
|
||||||
'bRenewedDateTouched' => true,
|
'bRenewedDateTouched' => true,
|
||||||
),
|
),
|
||||||
'date initiated' => array(
|
'date initiated' => array(
|
||||||
'sExpirationMode' => UserLocal::EXPIRE_CAN,
|
'sExpirationMode' => 'can_expire',
|
||||||
'oBefore' => '-1 day',
|
'oBefore' => '-1 day',
|
||||||
'bRenewedDateTouched' => false,
|
'bRenewedDateTouched' => false,
|
||||||
),
|
),
|
||||||
'date initiated in the future' => array(
|
'date initiated in the future' => array(
|
||||||
'sExpirationMode' => UserLocal::EXPIRE_CAN,
|
'sExpirationMode' => 'can_expire',
|
||||||
'oBefore' => '+1 day',
|
'oBefore' => '+1 day',
|
||||||
'bRenewedDateTouched' => false,
|
'bRenewedDateTouched' => false,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user