/**
  * @depends test_remote_get_success_looks_up_user
  */
 public function test_remote_get_success_new_user_who_can_not_manage_options_sets_the_proper_cookies_and_redirects_to_login()
 {
     Phake::when($this->facade)->current_user_can(Phake::anyParameters())->thenReturn(false);
     $this->client->launchkey_callback();
     Phake::verify($this->facade)->current_user_can('manage_options');
     Phake::verify($this->facade)->setcookie('launchkey_access_token', 'OAuth Access Token', $this->timestamp + 86400 * 30, COOKIEPATH, COOKIE_DOMAIN);
     Phake::verify($this->facade)->setcookie('launchkey_refresh_token', 'OAuth Refresh_token', $this->timestamp + 86400 * 30, COOKIEPATH, COOKIE_DOMAIN);
     Phake::verify($this->facade)->setcookie('launchkey_expires', $this->timestamp + $this->expires_in, $this->timestamp + 86400 * 30, COOKIEPATH, COOKIE_DOMAIN);
     Phake::verify($this->facade)->wp_redirect('loginURL?launchkey_pair=1');
 }