mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-18 17:38:20 +02:00
Fix & Complete tests
This commit is contained in:
25
tests/Feature/Models/AuthLogModelTest.php
Normal file
25
tests/Feature/Models/AuthLogModelTest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Models;
|
||||
|
||||
use App\Models\AuthLog;
|
||||
use App\Models\User;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use Tests\FeatureTestCase;
|
||||
|
||||
/**
|
||||
* UserModelTest test class
|
||||
*/
|
||||
#[CoversClass(AuthLog::class)]
|
||||
class AuthLogModelTest extends FeatureTestCase
|
||||
{
|
||||
#[Test]
|
||||
public function test_equals_returns_true()
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
$lastAuthLog = AuthLog::factory()->for($user, 'authenticatable')->create();
|
||||
|
||||
$this->assertTrue($lastAuthLog->equals($lastAuthLog));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user