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 off and user logged in
1 parent ca547d2 commit 3bc2c0dCopy full SHA for 3bc2c0d
tests/Feature/ActionMonitoringTest.php
@@ -329,3 +329,19 @@
329
// DB Assertions
330
assertDatabaseCount(config('user-monitoring.action_monitoring.table'), 2);
331
});
332
+
333
+test('action stored when the guest mode is off and user logged in', function () {
334
+ config()->set('user-monitoring.action_monitoring.guest_mode', false);
335
336
+ $user = createUser();
337
+ auth()->login($user);
338
339
+ $product = Product::query()->create([
340
+ 'title' => 'milwad',
341
+ 'description' => 'WE ARE HELPING TO OPEN-SOURCE WORLD'
342
+ ]);
343
+ $product->delete();
344
345
+ // DB Assertions
346
+ assertDatabaseCount(config('user-monitoring.action_monitoring.table'), 2);
347
+});
0 commit comments