summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-21 16:05:35 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-21 16:05:35 +0200
commit69db442c4981baf895625017558d70408c61e269 (patch)
treebb1e68b19859087ac2d84c8dd86a55fd62a80d13
parenta359fe7e6a7e43c2253aeca96b594dc25bece3d9 (diff)
downloadnextcloud-server-69db442c4981baf895625017558d70408c61e269.tar.gz
nextcloud-server-69db442c4981baf895625017558d70408c61e269.zip
fixing expected values for formatDate() unit tests
-rw-r--r--tests/lib/util.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php
index 600b794d8b8..9a3185b3f79 100644
--- a/tests/lib/util.php
+++ b/tests/lib/util.php
@@ -29,7 +29,7 @@ class Test_Util extends PHPUnit_Framework_TestCase {
date_default_timezone_set("UTC");
$result = OC_Util::formatDate(1350129205);
- $expected = 'October 13, 2012 11:53';
+ $expected = 'October 13, 2012 at 11:53:25 AM GMT+0';
$this->assertEquals($expected, $result);
$result = OC_Util::formatDate(1102831200, true);
@@ -41,7 +41,7 @@ class Test_Util extends PHPUnit_Framework_TestCase {
date_default_timezone_set("UTC");
$result = OC_Util::formatDate(1350129205, false, 'Europe/Berlin');
- $expected = 'October 13, 2012 13:53';
+ $expected = 'October 13, 2012 at 1:53:25 PM GMT+0';
$this->assertEquals($expected, $result);
}
@@ -57,7 +57,7 @@ class Test_Util extends PHPUnit_Framework_TestCase {
\OC::$server->getSession()->set('timezone', 3);
$result = OC_Util::formatDate(1350129205, false);
- $expected = 'October 13, 2012 14:53';
+ $expected = 'October 13, 2012 at 2:53:25 PM GMT+0';
$this->assertEquals($expected, $result);
}