]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing unit tests in UsersControllerTest
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 18:45:09 +0000 (19:45 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 18:45:40 +0000 (19:45 +0100)
tests/settings/controller/userscontrollertest.php

index 53a42de62ab9db577c2731b5e494f6d37bd562cb..b813da038a38fd242817e72ff56d178ea61fab82 100644 (file)
@@ -162,7 +162,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => array(),
                                        'quota' => 1024,
                                        'storageLocation' => '/home/foo',
-                                       'lastLogin' => 500,
+                                       'lastLogin' => 500000,
                                        'backend' => 'OC_User_Database',
                                        'email' => 'foo@bar.com',
                                        'isRestoreDisabled' => false,
@@ -174,7 +174,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => array(),
                                        'quota' => 404,
                                        'storageLocation' => '/home/admin',
-                                       'lastLogin' => 12,
+                                       'lastLogin' => 12000,
                                        'backend' => 'OC_User_Dummy',
                                        'email' => 'admin@bar.com',
                                        'isRestoreDisabled' => false,
@@ -186,7 +186,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => array(),
                                        'quota' => 2323,
                                        'storageLocation' => '/home/bar',
-                                       'lastLogin' => 3999,
+                                       'lastLogin' => 3999000,
                                        'backend' => 'OC_User_Dummy',
                                        'email' => 'bar@dummy.com',
                                        'isRestoreDisabled' => false,
@@ -330,7 +330,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => [],
                                        'quota' => 1024,
                                        'storageLocation' => '/home/foo',
-                                       'lastLogin' => 500,
+                                       'lastLogin' => 500000,
                                        'backend' => 'OC_User_Database',
                                        'email' => 'foo@bar.com',
                                        'isRestoreDisabled' => false,
@@ -342,7 +342,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => [],
                                        'quota' => 404,
                                        'storageLocation' => '/home/admin',
-                                       'lastLogin' => 12,
+                                       'lastLogin' => 12000,
                                        'backend' => 'OC_User_Dummy',
                                        'email' => 'admin@bar.com',
                                        'isRestoreDisabled' => false,
@@ -354,7 +354,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => [],
                                        'quota' => 2323,
                                        'storageLocation' => '/home/bar',
-                                       'lastLogin' => 3999,
+                                       'lastLogin' => 3999000,
                                        'backend' => 'OC_User_Dummy',
                                        'email' => 'bar@dummy.com',
                                        'isRestoreDisabled' => false,
@@ -461,7 +461,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => array(),
                                        'quota' => 1024,
                                        'storageLocation' => '/home/foo',
-                                       'lastLogin' => 500,
+                                       'lastLogin' => 500000,
                                        'backend' => 'OC_User_Database',
                                        'email' => 'foo@bar.com',
                                        'isRestoreDisabled' => false,
@@ -473,7 +473,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => array(),
                                        'quota' => 404,
                                        'storageLocation' => '/home/admin',
-                                       'lastLogin' => 12,
+                                       'lastLogin' => 12000,
                                        'backend' => 'OC_User_Dummy',
                                        'email' => 'admin@bar.com',
                                        'isRestoreDisabled' => false,
@@ -485,7 +485,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => array(),
                                        'quota' => 2323,
                                        'storageLocation' => '/home/bar',
-                                       'lastLogin' => 3999,
+                                       'lastLogin' => 3999000,
                                        'backend' => 'OC_User_Dummy',
                                        'email' => 'bar@dummy.com',
                                        'isRestoreDisabled' => false,
@@ -545,7 +545,7 @@ class UsersControllerTest extends \Test\TestCase {
                                        'subadmin' => array(),
                                        'quota' => null,
                                        'storageLocation' => '/home/foo',
-                                       'lastLogin' => 500,
+                                       'lastLogin' => 500000,
                                        'backend' => 'OC_User_Database',
                                        'email' => null,
                                        'isRestoreDisabled' => false,
@@ -1239,7 +1239,7 @@ class UsersControllerTest extends \Test\TestCase {
                        'subadmin' => array(),
                        'quota' => null,
                        'storageLocation' => $home,
-                       'lastLogin' => $lastLogin,
+                       'lastLogin' => $lastLogin * 1000,
                        'backend' => $backend,
                        'email' => null,
                        'isRestoreDisabled' => false,