Files
accounts/tests/GhostZero/BitinflowAccounts/ApiUsersTest.php
René Preuß 228c845bb5 Improve api operations
Change directory structure
Add bitinflow-accounts socialite provider
Improve docs generation
2019-09-22 21:53:49 +02:00

23 lines
589 B
PHP

<?php
declare(strict_types=1);
namespace GhostZero\BitinflowAccounts\Tests;
use GhostZero\BitinflowAccounts\Result;
use GhostZero\BitinflowAccounts\Tests\TestCases\ApiTestCase;
/**
* @author René Preuß <rene@preuss.io>
*/
class ApiUsersTest extends ApiTestCase
{
public function testGetAuthedUser()
{
$this->getClient()->withToken($this->getToken());
$this->registerResult($result = $this->getClient()->getAuthedUser());
$this->assertInstanceOf(Result::class, $result);
$this->assertEquals('rene@preuss.io', $result->data()->email);
}
}