Exemplo n.º 1
0
 /**
  * Create temporary test tables and entries in the database for these tests.
  * These tests have to work on a brand new site.
  */
 function setUp()
 {
     global $CFG, $DB;
     parent::setup();
     $CFG->grade_droplow = -1;
     $CFG->grade_keephigh = -1;
     $CFG->grade_aggregation = -1;
     $CFG->grade_aggregateonlygraded = -1;
     $CFG->grade_aggregateoutcomes = -1;
     $CFG->grade_aggregatesubcats = -1;
     foreach ($this->grade_tables as $table) {
         $function = "load_{$table}";
         $this->{$function}();
     }
 }
Exemplo n.º 2
0
 function setup()
 {
     parent::setup();
 }