You are here

protected function OauthTestBase::setUp in farmOS 2.x

Overrides TokenBearerFunctionalTestBase::setUp

1 call to OauthTestBase::setUp()
ConsumerConfigTest::setUp in modules/core/api/tests/src/Functional/ConsumerConfigTest.php
1 method overrides OauthTestBase::setUp()
ConsumerConfigTest::setUp in modules/core/api/tests/src/Functional/ConsumerConfigTest.php

File

modules/core/api/tests/src/Functional/OauthTestBase.php, line 35

Class

OauthTestBase
Base class that handles common logic for OAuth tests.

Namespace

Drupal\Tests\farm_api\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Add a client_id to the client.
  $this->client
    ->set('client_id', 'farm_test');
  $this->client
    ->set('confidential', FALSE);
  $this->client
    ->save();
}