public function tearDown()
 {
     UserManager::clearInstance();
     Tracker_FormElementFactory::clearInstance();
     parent::tearDown();
 }
Exemple #2
0
 private function clearFormElementCache()
 {
     $this->tracker_formelement_factory->clearInstance();
     $this->tracker_formelement_factory->instance();
 }
 private function GivenFormElementFactoryHasOnlyStartDateField()
 {
     Tracker_FormElementFactory::clearInstance();
     $form_element_factory = mock('Tracker_FormElementFactory');
     stub($form_element_factory)->getUsedFieldByNameForUser($this->sprint_tracker_id, 'start_date', $this->current_user)->returns($this->start_date_field);
     Tracker_FormElementFactory::setInstance($form_element_factory);
 }