[Pkg-owncloud-commits] [owncloud] 07/18: Remove server timezone dependency from files list test

David Prévot taffit at moszumanska.debian.org
Thu Apr 16 02:06:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 351a1ccaaded6ee2fabfb1bd028c394f69b2d143
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Tue Apr 7 10:12:15 2015 +0200

    Remove server timezone dependency from files list test
---
 apps/files/tests/controller/apicontrollertest.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/apps/files/tests/controller/apicontrollertest.php b/apps/files/tests/controller/apicontrollertest.php
index 35df1b6..87c57b6 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
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list