Пример #1
0
 /**
  * Step 2
  * Once you have the code, paste it on code.php and execute this one.
  *
  * Again, it will retrieve the valid token.
  * Copy and paste on test/everything_else/long_access_token.php
  *
  * Now you can execute all the tests inside the everything_else folder
  */
 public function testAuthentication()
 {
     $code = (include __DIR__ . '/code.php');
     $this->core->authenticate($code);
     echo 'Here is your token: ' . serialize(array('access_token' => $this->access_token_data->getLongAccessToken(), 'expires' => 5000));
     $this->assertTrue($this->core->isLogged());
 }
Пример #2
0
 /**
  * Clear all data from the persistent storage
  *
  * @return void
  */
 protected function clearAllPersistentData()
 {
     $this->access_token_data->clearLongAccessToken();
 }