change namespace and cleanup code

This commit is contained in:
envoyr committed 2022-05-14 18:21:55 +02:00
1 parent 76edd961b7
commit 377dc53037
46 files changed
+400 -360

No files matched your search

+23
View 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);
}
}