Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/calendar/tests/rrule_manager_tests.php

    r136 r1331  
    2828    protected $event;
    2929
    30     /** @var string system timezone */
    31     protected $tz;
    32 
    3330    /**
    3431     * Set up method.
    3532     */
    3633    protected function setUp() {
    37         global $DB;
     34        global $DB, $CFG;
    3835        $this->resetAfterTest();
    39         $this->tz = date_default_timezone_get();
    40         date_default_timezone_set('Australia/Perth');
     36
     37        $this->setTimezone('Australia/Perth');
    4138
    4239        $user = $this->getDataGenerator()->create_user();
     
    6764
    6865    /**
    69      * Tear down method.
    70      */
    71     protected function tearDown() {
    72         date_default_timezone_set($this->tz);
    73     }
    74 
    75     /**
    7666     * Test parse_rrule() method.
    7767     */
Note: See TracChangeset for help on using the changeset viewer.