diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-07 10:12:15 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-07 10:16:24 +0200 |
commit | 351a1ccaaded6ee2fabfb1bd028c394f69b2d143 (patch) | |
tree | 55b7995de2fe9f29713e5e1c52c62759d5ab05b2 | |
parent | 3d45d0bd1d507548ce99fe975e03ef60eec17d4f (diff) | |
download | nextcloud-server-351a1ccaaded6ee2fabfb1bd028c394f69b2d143.tar.gz nextcloud-server-351a1ccaaded6ee2fabfb1bd028c394f69b2d143.zip |
Remove server timezone dependency from files list test
-rw-r--r-- | apps/files/tests/controller/apicontrollertest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/tests/controller/apicontrollertest.php b/apps/files/tests/controller/apicontrollertest.php index 35df1b6be28..87c57b6b7db 100644 --- a/apps/files/tests/controller/apicontrollertest.php +++ b/apps/files/tests/controller/apicontrollertest.php @@ -87,7 +87,7 @@ class ApiControllerTest extends TestCase { [ 'id' => null, 'parentId' => null, - 'date' => 'January 1, 1970 at 12:00:55 AM GMT+0', + 'date' => \OCP\Util::formatDate(55), 'mtime' => 55000, 'icon' => \OCA\Files\Helper::determineIcon($fileInfo), 'name' => 'root.txt', @@ -152,7 +152,7 @@ class ApiControllerTest extends TestCase { [ 'id' => null, 'parentId' => null, - 'date' => 'January 1, 1970 at 12:00:55 AM GMT+0', + 'date' => \OCP\Util::formatDate(55), 'mtime' => 55000, 'icon' => \OCA\Files\Helper::determineIcon($fileInfo1), 'name' => 'root.txt', @@ -171,7 +171,7 @@ class ApiControllerTest extends TestCase { [ 'id' => null, 'parentId' => null, - 'date' => 'January 1, 1970 at 12:16:39 AM GMT+0', + 'date' => \OCP\Util::formatDate(999), 'mtime' => 999000, 'icon' => \OCA\Files\Helper::determineIcon($fileInfo2), 'name' => 'root.txt', @@ -240,4 +240,4 @@ class ApiControllerTest extends TestCase { $expected = new DataResponse('My error message', Http::STATUS_NOT_FOUND); $this->assertEquals($expected, $this->apiController->updateFileTags('/path.txt', ['Tag1', 'Tag2'])); } -}
\ No newline at end of file +} |