Skip to content

Commit ca547d2

Browse files
committed
add action stored when the guest mode is on and user not logged in test
1 parent db8d3ba commit ca547d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Feature/ActionMonitoringTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,16 @@
316316
// DB Assertions
317317
assertDatabaseCount(config('user-monitoring.action_monitoring.table'), 0);
318318
});
319+
320+
test('action stored when the guest mode is on and user not logged in', function () {
321+
config()->set('user-monitoring.action_monitoring.guest_mode', true);
322+
323+
$product = Product::query()->create([
324+
'title' => 'milwad',
325+
'description' => 'WE ARE HELPING TO OPEN-SOURCE WORLD'
326+
]);
327+
$product->delete();
328+
329+
// DB Assertions
330+
assertDatabaseCount(config('user-monitoring.action_monitoring.table'), 2);
331+
});

0 commit comments

Comments
 (0)