public function create($userName, $name, $email)
 {
     $accountFactory = new AccountFactory();
     $accountObject = $accountFactory->make('Member');
     $this->subscribeObservers($accountObject);
     $accountObject->create($userName, $name, $email);
 }
Exemple #2
0
 public function testAccountCanSaveNewOauthIdAfterHavingItAdded()
 {
     $account = AccountFactory::make($this->testAccountId);
     $oauth_id = 88888888888888.0;
     $account->setOauthId($oauth_id, 'facebook');
     AccountFactory::save($account);
     $account_dupe = AccountFactory::make($this->testAccountId);
     $this->assertEquals($oauth_id, $account_dupe->getOauthId());
 }
 public function create($userName, $name, $email)
 {
     $accountFactory = new AccountFactory();
     $accountObject = $accountFactory->make('Performer');
     $this->subscribeObservers($accountObject);
     // Temporary we don't want to send remote mail to yahoo users about creation:
     if (stristr($email, '@yahoo') !== FALSE) {
         $this->unSubscribeObserver($accountObject);
     }
     $accountObject->create($userName, $name, $email);
 }