2FAuth/tests/Unit/Events/TwoFAccountDeletedTest.php
2022-03-31 11:24:01 +02:00

29 lines
616 B
PHP

<?php
namespace Tests\Unit\Events;
use App\Models\TwoFAccount;
use App\Events\TwoFAccountDeleted;
use Tests\TestCase;
/**
* @covers \App\Events\TwoFAccountDeleted
*/
class TwoFAccountDeletedTest extends TestCase
{
/**
* @test
*/
public function test_event_constructor()
{
\Facades\App\Services\SettingService::shouldReceive('get')
->with('useEncryption')
->andReturn(false);
$twofaccount = TwoFAccount::factory()->make();
$event = new TwoFAccountDeleted($twofaccount);
$this->assertSame($twofaccount, $event->twofaccount);
}
}