You are here

public function OAuth2ClientTest::clientIntegration in OAuth2 Client 8

Test client integration.

1 call to OAuth2ClientTest::clientIntegration()
OAuth2ClientTest::testGetAccessToken in tests/src/Functional/OAuth2ClientTest.php

File

tests/src/Functional/OAuth2ClientTest.php, line 116

Class

OAuth2ClientTest
Test OAuth2 Client.

Namespace

Drupal\Tests\oauth2_client\Functional

Code

public function clientIntegration() {
  $result = $this
    ->drupalGet('oauth2/test-client-integration');
  $this
    ->assertText('access_token: ');
  $this
    ->assertText('extra_param: This will be appended to the request on redirect.');
}