From f88c75921adf0a43e5ae4698506373d2c54d3465 Mon Sep 17 00:00:00 2001 From: Mo Farouk <122031508+fmido88@users.noreply.github.com> Date: Fri, 30 Jun 2023 08:57:24 +0300 Subject: [PATCH] Add files via upload --- tests/enrol_wallet_test.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/enrol_wallet_test.php b/tests/enrol_wallet_test.php index be180829..6967bbed 100644 --- a/tests/enrol_wallet_test.php +++ b/tests/enrol_wallet_test.php @@ -1288,12 +1288,12 @@ public function test_get_unenrolself_link() { $this->assertNotEmpty($wallet->get_unenrolself_link($instance)); $this->setAdminUser(); - $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 6 * HOURSECS, time() + 4 * DAYSECS); + $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 6 * HOURSECS, time() + 4 * HOURSECS); $this->setUser($user); $this->assertEmpty($wallet->get_unenrolself_link($instance)); $this->setAdminUser(); - $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 9 * HOURSECS, time() + 1 * DAYSECS); + $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 9 * HOURSECS, time() + 1 * HOURSECS); $this->setUser($user); $this->assertNotEmpty($wallet->get_unenrolself_link($instance)); @@ -1308,13 +1308,13 @@ public function test_get_unenrolself_link() { // Cannot unenrol self after the condition after time. $this->setAdminUser(); - $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 6 * HOURSECS, time() + 4 * DAYSECS); + $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 6 * HOURSECS, time() + 4 * HOURSECS); $this->setUser($user); $this->assertEmpty($wallet->get_unenrolself_link($instance)); // Cannot self unenrol. $this->setAdminUser(); - $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 9 * HOURSECS, time() + 1 * DAYSECS); + $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 9 * HOURSECS, time() + 1 * HOURSECS); $this->setUser($user); $this->assertEmpty($wallet->get_unenrolself_link($instance)); @@ -1329,13 +1329,13 @@ public function test_get_unenrolself_link() { // Cannot unenrol. $this->setAdminUser(); - $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 6 * HOURSECS, time() + 4 * DAYSECS); + $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 6 * HOURSECS, time() + 4 * HOURSECS); $this->setUser($user); $this->assertEmpty($wallet->get_unenrolself_link($instance)); // Can self unenrol. $this->setAdminUser(); - $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 9 * HOURSECS, time() + 1 * DAYSECS); + $wallet->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, time() - 9 * HOURSECS, time() + 1 * HOURSECS); $this->setUser($user); $this->assertNotEmpty($wallet->get_unenrolself_link($instance)); }