protected function setUp() { global $CFG; parent::setup(); $this->resetAfterTest(true); $CFG->grade_droplow = -1; $CFG->grade_keephigh = -1; $CFG->grade_aggregation = -1; $CFG->grade_aggregateonlygraded = -1; $CFG->grade_aggregateoutcomes = -1; $CFG->grade_aggregatesubcats = -1; $this->course = $this->getDataGenerator()->create_course(); $this->courseid = $this->course->id; $this->user[0] = $this->getDataGenerator()->create_user(); $this->user[1] = $this->getDataGenerator()->create_user(); $this->user[2] = $this->getDataGenerator()->create_user(); $this->user[3] = $this->getDataGenerator()->create_user(); $this->userid = $this->user[0]->id; $this->load_modules(); $this->load_scales(); $this->load_grade_categories(); $this->load_grade_items(); $this->load_grade_grades(); $this->load_grade_outcomes(); }
protected function setUp() { parent::setup(); $this->resetAfterTest(true); $this->robot = new \local_linkchecker_robot\robot\crawler(); }
/** * Create temporary test tables and entries in the database for these tests. * These tests have to work on a brand new site. */ public function setUp() { global $CFG; parent::setup(); $this->generator = $this->getDataGenerator()->get_plugin_generator('mod_ouwiki'); }