Permalink
Browse files

MDL-29001 unit tests: removed timezone test fixtures dependent on 'Au…

…stralia/Perth'
  • Loading branch information...
1 parent 0795088 commit 903441b15947f24d971c3c577484efbe26416be0 Rajesh Taneja committed Aug 19, 2011
Showing with 0 additions and 60 deletions.
  1. +0 −60 lib/simpletest/testmoodlelib.php
@@ -319,18 +319,6 @@ public function test_userdate() {
'expectedoutput' => 'Friday, 1 July 2011, 10:00 AM'
),
array(
- 'time' => '1309514400',
- 'usertimezone' => 'America/Moncton',
- 'timezone' => '99', //dst offset and timezone offset.
- 'expectedoutput' => 'Friday, 1 July 2011, 07:00 AM'
- ),
- array(
- 'time' => '1309514400',
- 'usertimezone' => 'America/Moncton',
- 'timezone' => 'America/Moncton', //dst offset and timezone offset.
- 'expectedoutput' => 'Friday, 1 July 2011, 07:00 AM'
- ),
- array(
'time' => '1293876000 ',
'usertimezone' => 'America/Moncton',
'timezone' => '0.0', //no dst offset
@@ -420,54 +408,6 @@ public function test_make_timestamp() {
$testvalues = array(
array(
- 'usertimezone' => 'America/Moncton',
- 'year' => '2011',
- 'month' => '7',
- 'day' => '1',
- 'hour' => '10',
- 'minutes' => '00',
- 'seconds' => '00',
- 'timezone' => '0.0', //no dst offset
- 'applydst' => false,
- 'expectedoutput' => '1309528800'
- ),
- array(
- 'usertimezone' => 'America/Moncton',
- 'year' => '2011',
- 'month' => '7',
- 'day' => '1',
- 'hour' => '10',
- 'minutes' => '00',
- 'seconds' => '00',
- 'timezone' => '99', //user default timezone
- 'applydst' => false, //don't apply dst
- 'expectedoutput' => '1309528800'
- ),
- array(
- 'usertimezone' => 'America/Moncton',
- 'year' => '2011',
- 'month' => '7',
- 'day' => '1',
- 'hour' => '10',
- 'minutes' => '00',
- 'seconds' => '00',
- 'timezone' => '99', //user default timezone
- 'applydst' => true, //apply dst
- 'expectedoutput' => '1309525200'
- ),
- array(
- 'usertimezone' => 'America/Moncton',
- 'year' => '2011',
- 'month' => '7',
- 'day' => '1',
- 'hour' => '10',
- 'minutes' => '00',
- 'seconds' => '00',
- 'timezone' => 'America/Moncton', //string timezone
- 'applydst' => true, //apply dst
- 'expectedoutput' => '1309525200'
- ),
- array(
'usertimezone' => '2',//no dst applyed
'year' => '2011',
'month' => '7',

0 comments on commit 903441b

Please sign in to comment.