From 7b05e14659bf28d48b2fc2fe6fce81fa69113349 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Tue, 14 Aug 2012 11:25:06 +0800 Subject: [PATCH] MDL-28531 Unit Tests: Fixed tests to work with core update --- lib/form/tests/dateselector_test.php | 4 ++-- lib/form/tests/datetimeselector_test.php | 4 ++-- lib/tests/moodlelib_test.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/form/tests/dateselector_test.php b/lib/form/tests/dateselector_test.php index ab8cb9a0fef..8db9155f834 100644 --- a/lib/form/tests/dateselector_test.php +++ b/lib/form/tests/dateselector_test.php @@ -128,7 +128,7 @@ class dateselector_form_element_testcase extends basic_testcase { 'year' => 2011, 'usertimezone' => 0.0, 'timezone' => 0.0, - 'timestamp' => 1309449600 + 'timestamp' => 1309478400 // 6am at UTC+0 ), array ( 'day' => 1, @@ -136,7 +136,7 @@ class dateselector_form_element_testcase extends basic_testcase { 'year' => 2011, 'usertimezone' => 0.0, 'timezone' => 99, - 'timestamp' => 1309449600 + 'timestamp' => 1309478400 // 6am at UTC+0 ) ); } diff --git a/lib/form/tests/datetimeselector_test.php b/lib/form/tests/datetimeselector_test.php index b0ce16e0b12..abd5cea3426 100644 --- a/lib/form/tests/datetimeselector_test.php +++ b/lib/form/tests/datetimeselector_test.php @@ -138,7 +138,7 @@ class datetimeselector_form_element_testcase extends basic_testcase { 'year' => 2011, 'usertimezone' => 0.0, 'timezone' => 0.0, - 'timestamp' => 1309449600 + 'timestamp' => 1309478400 // 6am at UTC+0 ), array ( 'minute' => 0, @@ -148,7 +148,7 @@ class datetimeselector_form_element_testcase extends basic_testcase { 'year' => 2011, 'usertimezone' => 0.0, 'timezone' => 99, - 'timestamp' => 1309449600 + 'timestamp' => 1309478400 // 6am at UTC+0 ) ); } diff --git a/lib/tests/moodlelib_test.php b/lib/tests/moodlelib_test.php index 2d03ffcad25..dd9665a5d59 100644 --- a/lib/tests/moodlelib_test.php +++ b/lib/tests/moodlelib_test.php @@ -1549,9 +1549,9 @@ class moodlelib_testcase extends advanced_testcase { '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',