/** * 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}(); } }
function setup() { parent::setup(); }