OauthTestBase.php in farmOS 2.x
File
modules/core/api/tests/src/Functional/OauthTestBase.php
View source
<?php
namespace Drupal\Tests\farm_api\Functional;
use Drupal\Tests\simple_oauth\Functional\TokenBearerFunctionalTestBase;
class OauthTestBase extends TokenBearerFunctionalTestBase {
protected $profile = 'farm';
protected static $modules = [
'image',
'node',
'serialization',
'simple_oauth',
'text',
'user',
'farm_api',
];
protected function setUp() : void {
parent::setUp();
$this->client
->set('client_id', 'farm_test');
$this->client
->set('confidential', FALSE);
$this->client
->save();
}
}