/** * test reset account capabilities */ public function testResetAccountCapabilities() { $capabilities = $this->_controller->updateCapabilities($this->_account); $account = clone $this->_account; $account->host = 'unittest.org'; $account->type = Felamimail_Model_Account::TYPE_USER; $this->_controller->update($account); $this->assertFalse(array_key_exists($this->_account->getId(), $_SESSION['Felamimail']), print_r($_SESSION['Felamimail'], TRUE)); }
/** * test create trash on the fly */ public function testCreateTrashOnTheFly() { // make sure that the delimiter is correct / fetched from server $capabilities = $this->_controller->updateCapabilities($this->_account); // set another trash folder $this->_account->trash_folder = 'newtrash'; $this->_foldersToDelete[] = 'newtrash'; $accountBackend = new Felamimail_Backend_Account(); $account = $accountBackend->update($this->_account); $newtrash = $this->_controller->getSystemFolder($account, Felamimail_Model_Folder::FOLDER_TRASH); }