Replace Rappasoft\LaravelAuthenticationLog by forked package

This commit is contained in:
Bubka
2024-04-20 18:10:30 +02:00
parent 7322184016
commit 11ceb52286
10 changed files with 403 additions and 393 deletions

View File

@ -12,6 +12,7 @@ use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Facades\Password;
@ -522,6 +523,24 @@ class UserManagerControllerTest extends FeatureTestCase
->assertForbidden();
}
/**
* @test
*/
public function test_authLog_events_are_listened_by_authLog_listeners()
{
Event::fake();
foreach (config('authentication-log.listeners') as $type => $listenerClass) {
Event::assertListening(
config('authentication-log.events.' . $type),
$listenerClass
);
}
}
/**
* Local feeder because Factory cannot be used here
*/
protected function feedAuthenticationLog() : int
{
// Do not change creation order