Esempio n. 1
0
 /**
  * Delete an account
  *
  * @param  Account $account
  * @return boolean
  */
 public function delete(Account $account)
 {
     $params = array('username' => $account->getUsername());
     $response = $this->getApiClient()->post('/accounts/delete', $params);
     if ($response && $response->isOk()) {
         return true;
     }
     return false;
 }
 public function testValidUsername()
 {
     $account = new Account();
     $account->setUsername('*****@*****.**');
     $this->assertEquals('*****@*****.**', $account->getUsername());
 }