mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-13 13:35:52 +00:00
23 lines
540 B
PHP
23 lines
540 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace GhostZero\BitinflowAccounts\Tests;
|
|
|
|
use GhostZero\BitinflowAccounts\Tests\TestCases\ApiTestCase;
|
|
|
|
/**
|
|
* @author René Preuß <rene@preuss.io>
|
|
*/
|
|
class ApiOauthTest extends ApiTestCase
|
|
{
|
|
|
|
public function testGetOauthToken(): void
|
|
{
|
|
$this->registerResult($result = $this->getClient()->retrievingToken('client_credentials', [
|
|
'scope' => '',
|
|
]));
|
|
$this->assertTrue($result->success());
|
|
$this->assertNotEmpty($result->data()->access_token);
|
|
}
|
|
} |