diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-12-10 10:06:17 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-01-07 16:30:23 +0100 |
commit | a8a2ca42a4c850ce740a6ecfd36c2d457558a83f (patch) | |
tree | 55afeb4399ac729c33657e32fbecd0b2bb73d94e /apps/provisioning_api/tests | |
parent | 1d0962ab33ce9e6846479ce44381d8cdcb8ad122 (diff) | |
download | nextcloud-server-a8a2ca42a4c850ce740a6ecfd36c2d457558a83f.tar.gz nextcloud-server-a8a2ca42a4c850ce740a6ecfd36c2d457558a83f.zip |
fix: Return timestamps in unix format rather than milliseconds
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r-- | apps/provisioning_api/tests/Controller/UsersControllerTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php index e4b42c04651..f75ec9192c3 100644 --- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php +++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php @@ -1173,7 +1173,8 @@ class UsersControllerTest extends TestCase { 'id' => 'UID', 'enabled' => true, 'storageLocation' => '/var/www/newtcloud/data/UID', - 'firstLogin' => 1511191471000, + 'firstLoginTimestamp' => 1511191471, + 'lastLoginTimestamp' => 1521191471, 'lastLogin' => 1521191471000, 'backend' => 'Database', 'subadmin' => ['group3'], @@ -1317,7 +1318,8 @@ class UsersControllerTest extends TestCase { $expected = [ 'id' => 'UID', 'enabled' => true, - 'firstLogin' => 1511191471000, + 'firstLoginTimestamp' => 1511191471, + 'lastLoginTimestamp' => 1521191471, 'lastLogin' => 1521191471000, 'backend' => 'Database', 'subadmin' => [], @@ -1499,7 +1501,8 @@ class UsersControllerTest extends TestCase { $expected = [ 'id' => 'UID', - 'firstLogin' => 1511191471000, + 'firstLoginTimestamp' => 1511191471, + 'lastLoginTimestamp' => 1521191471, 'lastLogin' => 1521191471000, 'backend' => 'Database', 'subadmin' => [], |