mirror of
https://github.com/bitinflow/accounts.git
synced 2026-11-01 05:09:07 +00:00
Refactoring
This commit is contained in:
1 parent
7ba3cdffb0
commit
a2405875ad
26 files changed
+569
-391
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Bitinflow\Payments\Tests;
|
||||
|
||||
use Bitinflow\Accounts\Contracts\AppTokenRepository;
|
||||
use Bitinflow\Payments\Tests\TestCases\ApiTestCase;
|
||||
|
||||
/**
|
||||
* @author René Preuß <rene@preuss.io>
|
||||
*/
|
||||
class ApiOauthTest extends ApiTestCase
|
||||
{
|
||||
|
||||
public function testGetOauthToken(): void
|
||||
{
|
||||
$token = app(AppTokenRepository::class)->getAccessToken();
|
||||
|
||||
$this->getPaymentsClient()->withToken($this->getToken());
|
||||
$this->registerResult($result = $this->getPaymentsClient()->createSubscription([
|
||||
|
||||
]));
|
||||
$result->dump();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user