/** * Tears down the fixture * This method is called after a test is executed. * * @access protected */ protected function tearDown() { foreach ($this->_createdFolders as $foldername) { $this->_controller->delete($this->_account->getId(), $foldername); } // delete all remaining folders from cache of account $folderBackend = new Felamimail_Backend_Folder(); $folders = $folderBackend->getMultipleByProperty($this->_account->getId(), 'account_id'); foreach ($folders as $folder) { $folderBackend->delete($folder); } }
/** * Tears down the fixture * This method is called after a test is executed. * * @access protected */ protected function tearDown() { foreach ($this->_createdFolders as $foldername) { $this->_controller->delete($this->_account->getId(), $foldername); } // delete all remaining folders from cache of account $folderBackend = new Expressomail_Backend_Folder(); // TODO delete folders $folders = array(); foreach ($folders as $folder) { $folderBackend->delete($folder); } }