From 075e2ec94a14248b927a8d0c46126e53ae1ee74f Mon Sep 17 00:00:00 2001 From: odain Date: Thu, 4 May 2023 15:08:40 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06171=20-=20Password=20Expiration:=20can?= =?UTF-8?q?=20expire=20mode=20has=20no=20effect=20on=20user=20who=20have?= =?UTF-8?q?=20never=20changed=20their=20password=20-=20fix=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datamodels/2.x/authent-local/UserLocalTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/php-unit-tests/unitary-tests/datamodels/2.x/authent-local/UserLocalTest.php b/tests/php-unit-tests/unitary-tests/datamodels/2.x/authent-local/UserLocalTest.php index 509f9143e4..c1ee68ef31 100644 --- a/tests/php-unit-tests/unitary-tests/datamodels/2.x/authent-local/UserLocalTest.php +++ b/tests/php-unit-tests/unitary-tests/datamodels/2.x/authent-local/UserLocalTest.php @@ -351,32 +351,32 @@ class UserLocalTest extends ItopDataTestCase { return array( 'EXPIRE_CAN: nominal case' => array( - 'sExpirationMode' => UserLocal::EXPIRE_CAN, + 'sExpirationMode' => 'can_expire', 'oExpectedBefore' => null, 'bRenewedDateTouched' => true, ), 'EXPIRE_NEVER (default mode): nothing changed on UserLocal' => array( - 'sExpirationMode' => UserLocal::EXPIRE_NEVER, + 'sExpirationMode' => 'never_expire', 'oExpectedBefore' => null, 'bRenewedDateTouched' => false, ), 'EXPIRE_FORCE: nominal case' => array( - 'sExpirationMode' => UserLocal::EXPIRE_FORCE, + 'sExpirationMode' => 'force_expire', 'oExpectedBefore' => null, 'bRenewedDateTouched' => true, ), 'EXPIRE_ONE_TIME_PWD: nominal case' => array( - 'sExpirationMode' => UserLocal::EXPIRE_ONE_TIME_PWD, + 'sExpirationMode' => 'otp_expire', 'oExpectedBefore' => null, 'bRenewedDateTouched' => true, ), 'date initiated' => array( - 'sExpirationMode' => UserLocal::EXPIRE_CAN, + 'sExpirationMode' => 'can_expire', 'oBefore' => '-1 day', 'bRenewedDateTouched' => false, ), 'date initiated in the future' => array( - 'sExpirationMode' => UserLocal::EXPIRE_CAN, + 'sExpirationMode' => 'can_expire', 'oBefore' => '+1 day', 'bRenewedDateTouched' => false, ),