Skip to content

Commit

Permalink
add throw an error when days equal to 0 test
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Jul 31, 2023
1 parent a095dd6 commit 8a71750
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Feature/DeleteVisitMonitoringRecordsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@
// DB Assertions
assertDatabaseCount(config('user-monitoring.visit_monitoring.table'), 2);
});

test('throw an error when days equal to 0', function () {
artisan('laravel-user-monitoring:remove-visit-monitoring-records')
->expectsOutput('Your delete days are 0, You can go to the config file and change it!');
});

0 comments on commit 8a71750

Please sign in to comment.