2FAuth/tests/Unit/Events/TwoFAccountDeletedTest.php

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);
}
}