mirror of https://github.com/Bubka/2FAuth.git
26 lines
637 B
PHP
26 lines
637 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Listeners;
|
|
|
|
use App\Models\Group;
|
|
use App\Models\TwoFAccount;
|
|
use App\Events\GroupDeleting;
|
|
use Tests\FeatureTestCase;
|
|
use App\Listeners\DissociateTwofaccountFromGroup;
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
|
|
/**
|
|
* @covers \App\Listeners\DissociateTwofaccountFromGroup
|
|
*/
|
|
class DissociateTwofaccountFromGroupTest extends FeatureTestCase
|
|
{
|
|
public function test_it_stores_time_to_session()
|
|
{
|
|
$group = Group::factory()->make();
|
|
$event = new GroupDeleting($group);
|
|
$listener = new DissociateTwofaccountFromGroup();
|
|
|
|
$this->assertNull($listener->handle($event));
|
|
}
|
|
} |