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.
1 parent 09a64ed commit d1b7811Copy full SHA for d1b7811
tests/Feature/VisitMonitoringTest.php
@@ -48,6 +48,17 @@
48
assertDatabaseMissing(config('user-monitoring.visit_monitoring.table'), ['page' => url('/')]);
49
});
50
51
+test('visit monitoring records didn"t store when turn_on key is off', function () {
52
+ config()->set('user-monitoring.visit_monitoring.turn_on', false);
53
+
54
+ $response = get('/');
55
+ $response->assertContent('milwad');
56
57
+ // DB Assertions
58
+ assertDatabaseCount(config('user-monitoring.visit_monitoring.table'), 0);
59
+ assertDatabaseMissing(config('user-monitoring.visit_monitoring.table'), ['page' => url('/')]);
60
+});
61
62
/**
63
* Create user.
64
*
0 commit comments