/**
  * @param Account $account
  */
 protected function assertAccount(Account $account)
 {
     $this->assertEquals($this->accountId, $account->getAccountId());
     $this->assertEquals($this->accountName, $account->getAccountName());
     $this->assertEquals($this->googleId, $account->getGoogleId());
     $this->assertEquals($this->googleName, $account->getGoogleName());
     $this->assertEquals($this->email, $account->getEmail());
     $this->assertEquals($this->accessToken, $account->getAccessToken());
     $this->assertEquals($this->refreshToken, $account->getRefreshToken());
 }
Exemplo n.º 2
0
 protected function initApi()
 {
     $this->googleDriveApi->getApi()->setCredentials($this->currAccount->getAccessToken(), $this->currAccount->getRefreshToken());
     $this->googleDriveApi->getApi()->setRefreshTokenCallback(array($this, 'refreshTokenCallback'));
 }