Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
69db442c
Commit
69db442c
authored
Oct 21, 2014
by
Thomas Müller
Browse files
fixing expected values for formatDate() unit tests
parent
a359fe7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/lib/util.php
View file @
69db442c
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment