mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
fix(tests): Adapt tests to firstLogin new feature
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
e700713ff6
commit
df8397e2ca
1 changed files with 15 additions and 0 deletions
|
|
@ -1147,6 +1147,10 @@ class UsersControllerTest extends TestCase {
|
|||
->expects($this->once())
|
||||
->method('getLastLogin')
|
||||
->willReturn(1521191471);
|
||||
$targetUser
|
||||
->expects($this->once())
|
||||
->method('getFirstLogin')
|
||||
->willReturn(1511191471);
|
||||
$targetUser
|
||||
->expects($this->once())
|
||||
->method('getBackendClassName')
|
||||
|
|
@ -1169,6 +1173,7 @@ class UsersControllerTest extends TestCase {
|
|||
'id' => 'UID',
|
||||
'enabled' => true,
|
||||
'storageLocation' => '/var/www/newtcloud/data/UID',
|
||||
'firstLogin' => 1511191471000,
|
||||
'lastLogin' => 1521191471000,
|
||||
'backend' => 'Database',
|
||||
'subadmin' => ['group3'],
|
||||
|
|
@ -1273,6 +1278,10 @@ class UsersControllerTest extends TestCase {
|
|||
->expects($this->once())
|
||||
->method('getLastLogin')
|
||||
->willReturn(1521191471);
|
||||
$targetUser
|
||||
->expects($this->once())
|
||||
->method('getFirstLogin')
|
||||
->willReturn(1511191471);
|
||||
$targetUser
|
||||
->expects($this->once())
|
||||
->method('getBackendClassName')
|
||||
|
|
@ -1308,6 +1317,7 @@ class UsersControllerTest extends TestCase {
|
|||
$expected = [
|
||||
'id' => 'UID',
|
||||
'enabled' => true,
|
||||
'firstLogin' => 1511191471000,
|
||||
'lastLogin' => 1521191471000,
|
||||
'backend' => 'Database',
|
||||
'subadmin' => [],
|
||||
|
|
@ -1455,6 +1465,10 @@ class UsersControllerTest extends TestCase {
|
|||
->expects($this->once())
|
||||
->method('getLastLogin')
|
||||
->willReturn(1521191471);
|
||||
$targetUser
|
||||
->expects($this->once())
|
||||
->method('getFirstLogin')
|
||||
->willReturn(1511191471);
|
||||
$targetUser
|
||||
->expects($this->once())
|
||||
->method('getBackendClassName')
|
||||
|
|
@ -1485,6 +1499,7 @@ class UsersControllerTest extends TestCase {
|
|||
|
||||
$expected = [
|
||||
'id' => 'UID',
|
||||
'firstLogin' => 1511191471000,
|
||||
'lastLogin' => 1521191471000,
|
||||
'backend' => 'Database',
|
||||
'subadmin' => [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue