mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-29 11:43:26 +01:00
29 lines
623 B
PHP
29 lines
623 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Events;
|
|
|
|
use App\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\SettingServiceInterface::shouldReceive('get')
|
|
->with('useEncryption')
|
|
->andReturn(false);
|
|
|
|
$twofaccount = factory(TwoFAccount::class)->make();
|
|
$event = new TwoFAccountDeleted($twofaccount);
|
|
|
|
$this->assertSame($twofaccount, $event->twofaccount);
|
|
}
|
|
} |