/** * 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)); }
/** * testEmptySignature * * @see 0006666: Signature delimeter not removed if no Signature is used */ public function testEmptySignature() { $this->_account->signature = '<html><body><div><br /></div><p> </p> <br /></body></html>'; $account = $this->_controller->update($this->_account); $this->assertEquals('', $account->signature, 'did not save empty signature'); }