mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-16 23:15:52 +00:00
change namespace and cleanup code
This commit is contained in:
23
tests/Accounts/ApiOauthTest.php
Normal file
23
tests/Accounts/ApiOauthTest.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Bitinflow\Accounts\Tests;
|
||||
|
||||
use Bitinflow\Accounts\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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user