Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28531 Unit Tests: Fixed tests to work with core update

  • Loading branch information...
commit d190fcd9d95772c9ba287a16b5159719d6022c77 1 parent 68576ef
@FMCorz FMCorz authored
View
4 lib/form/tests/dateselector_test.php
@@ -128,7 +128,7 @@ public function setUp() {
'year' => 2011,
'usertimezone' => 0.0,
'timezone' => 0.0,
- 'timestamp' => 1309449600
+ 'timestamp' => 1309478400 // 6am at UTC+0
),
array (
'day' => 1,
@@ -136,7 +136,7 @@ public function setUp() {
'year' => 2011,
'usertimezone' => 0.0,
'timezone' => 99,
- 'timestamp' => 1309449600
+ 'timestamp' => 1309478400 // 6am at UTC+0
)
);
}
View
4 lib/form/tests/datetimeselector_test.php
@@ -138,7 +138,7 @@ public function setUp() {
'year' => 2011,
'usertimezone' => 0.0,
'timezone' => 0.0,
- 'timestamp' => 1309449600
+ 'timestamp' => 1309478400 // 6am at UTC+0
),
array (
'minute' => 0,
@@ -148,7 +148,7 @@ public function setUp() {
'year' => 2011,
'usertimezone' => 0.0,
'timezone' => 99,
- 'timestamp' => 1309449600
+ 'timestamp' => 1309478400 // 6am at UTC+0
)
);
}
View
6 lib/tests/moodlelib_test.php
@@ -1549,9 +1549,9 @@ public function test_make_timestamp() {
'hour' => '10',
'minutes' => '00',
'seconds' => '00',
- 'timezone' => '0.0', //no dst offset
- 'applydst' => false,
- 'expectedoutput' => '1309528800'
+ 'timezone' => '0.0',
+ 'applydst' => false, //no dst offset
+ 'expectedoutput' => '1309514400' // 6pm at UTC+0
),
array(
'usertimezone' => 'America/Moncton',
Please sign in to comment.
Something went wrong with that request. Please try again.