protected function setUp() { global $PAGE; parent::setUp(); $this->renderer = $PAGE->get_renderer('qbehaviour_adaptive'); $this->options = new question_display_options(); }
/** * Initalize test wide variable, it is called in start of the testcase */ protected function setUp() { parent::setUp(); // Get form data. $form = new temp_form_duration(); $this->mform = $form->getform(); $this->element = $this->mform->addElement('duration', 'duration'); }
protected function tearDown() { global $DB,$CFG,$SESSION,$USER; $DB = $this->realdb; $CFG = $this->realcfg; $SESSION = $this->realsession; $USER = $this->prevuser; parent::tearDown(); }
protected function setUp() { parent::setUp(); if ($this->getName() === 'test_setup_assert') { $this->assertTrue(true); $this->testassertexecuted = true; return; } }
/** * Cleans things up after this test case has run. */ protected function tearDown() { global $SESSION; parent::tearDown(); if ($this->initiallang !== null) { $SESSION->lang = $this->initiallang; $this->initiallang = null; } else { unset($SESSION->lang); } }
protected function tearDown() { $this->testpage = null; $this->blockmanager = null; parent::tearDown(); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('interactivecountback'); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('immediatefeedback'); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('informationitem'); }
protected function tearDown() { $this->workshop = null; $this->evaluator = null; parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->cache = new navigation_cache('simpletest_nav'); $this->cache->anysetvariable = true; }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('manualgraded'); }
/** * Sets up the test cases. */ protected function setUp() { parent::setUp(); $this->filter = new filter_oembed(context_system::instance(), array()); }
public function setUp() { parent::setUp(); $this->behaviourtype = question_engine::get_behaviour_type('missing'); }
/** * Clears the data set in the setUp() method call. * @see dateselector_form_element_testcase::setUp() */ protected function tearDown() { unset($this->testvals); parent::tearDown(); }
/** * Initalize test wide variable, it is called in start of the testcase */ protected function setUp() { parent::setUp(); $this->element = new MoodleQuickForm_duration(); }