We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
action stored when the guest mode is on and user logged in
1 parent 3bc2c0d commit a6f564fCopy full SHA for a6f564f
tests/Feature/ActionMonitoringTest.php
@@ -345,3 +345,19 @@
345
// DB Assertions
346
assertDatabaseCount(config('user-monitoring.action_monitoring.table'), 2);
347
});
348
+
349
+test('action stored when the guest mode is on and user logged in', function () {
350
+ config()->set('user-monitoring.action_monitoring.guest_mode', true);
351
352
+ $user = createUser();
353
+ auth()->login($user);
354
355
+ $product = Product::query()->create([
356
+ 'title' => 'milwad',
357
+ 'description' => 'WE ARE HELPING TO OPEN-SOURCE WORLD'
358
+ ]);
359
+ $product->delete();
360
361
+ // DB Assertions
362
+ assertDatabaseCount(config('user-monitoring.action_monitoring.table'), 2);
363
+});
0 commit comments