mirror of
https://github.com/1sept/oauth2-1sept.git
synced 2024-05-30 17:38:52 +03:00
Add API base URL castomization option
This commit is contained in:
22
tests/UserTest.php
Normal file
22
tests/UserTest.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Sept\OAuth2\Client\Test;
|
||||
|
||||
use PHPUnit\Framework\Attributes\CoversMethod;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Sept\OAuth2\Client\Provider\SeptemberFirstUser;
|
||||
|
||||
#[CoversMethod(SeptemberFirstUser::class, 'getFirstName')]
|
||||
final class UserTest extends TestCase
|
||||
{
|
||||
public function testCreate(): void
|
||||
{
|
||||
$name = 'Alex';
|
||||
$user = new SeptemberFirstUser([
|
||||
'personal_name' => [
|
||||
'name' => $name,
|
||||
],
|
||||
]);
|
||||
self::assertSame($name, $user->getFirstName());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user