mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-01 20:54:03 +01:00
26 lines
588 B
PHP
26 lines
588 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Extensions;
|
|
|
|
use App\Extensions\RemoteUserProvider;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
* @covers \App\Extensions\RemoteUserProvider
|
|
*/
|
|
class RemoteUserProviderTest extends TestCase
|
|
{
|
|
public function test_retreiving_a_user_returns_a_non_persisted_user_instance()
|
|
{
|
|
$provider = new RemoteUserProvider;
|
|
|
|
$user = $provider->retrieveById([
|
|
'user' => 'testUser',
|
|
'email' => 'test@example.org',
|
|
]);
|
|
|
|
$this->assertInstanceOf('\App\Models\User', $user);
|
|
$this->assertEquals(true, $user->exists);
|
|
}
|
|
}
|