toBeFalse() ->and(Schema::hasTable('manager_audit_logs'))->toBeFalse() ->and(Schema::hasTable('manager_ip_bans'))->toBeFalse() ->and(Manager::permissionValues())->not->toContain('audit.view', 'audit.manage'); // A failed login goes by without a trace, and without a table to write to. event(new Failed('web', null, ['email' => 'nobody@example.com'])); }); it('does not schedule the prune command when the audit log is off', function () { $commands = collect(app(Schedule::class)->events())->map(fn ($event) => $event->command)->implode(' '); expect($commands)->not->toContain('manager:audit-prune'); });