/** * Tears down the fixture * This method is called after a test is executed. * * @access protected */ protected function tearDown() { // switch back to admin user if ($this->_testUser) { Tinebase_Core::set(Tinebase_Core::USER, $this->_testUser); } parent::tearDown(); }
/** * Sets up the fixture. * This method is called before a test is executed. * * @access protected */ protected function setUp() { parent::setUp(); $this->_timeaccountController = Timetracker_Controller_Timeaccount::getInstance(); }