public function testSet_redirect_uri() { $redirect_uri = 'https://www.google.com'; $this->assertEquals('', $this->object->get_redirect_uri()); $this->object->set_redirect_uri($redirect_uri); $this->assertEquals($redirect_uri, $this->object->get_redirect_uri()); }
/** * * Overrides OAuth2::getAuthCode(). * * @return array */ protected function getAuthCode($code) { try { $code = new API_OAuth2_AuthCode($this->app, $code); return ['redirect_uri' => $code->get_redirect_uri(), 'client_id' => $code->get_account()->get_application()->get_client_id(), 'expires' => $code->get_expires(), 'account_id' => $code->get_account()->get_id()]; } catch (\Exception $e) { } return null; }