You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently writing some tests for activity logging, for model deletions I'm utilising getActivitylogOptions(). The logging itself functions fine when working locally, though when writing tests, model deletion does not seem to log anything though create/update tests are passing fine. Here's an example:
Dumping out the DB activity_log will also an empty collection. This issue is happening in other deletions but they also involve firing a chain of jobs, this is just handled by a simple $administrator->delete() in the admin controller, which has lead me to think it's something to do with the relationship between testing and model events.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
I'm currently writing some tests for activity logging, for model deletions I'm utilising
getActivitylogOptions()
. The logging itself functions fine when working locally, though when writing tests, model deletion does not seem to log anything though create/update tests are passing fine. Here's an example:Dumping out the DB
activity_log
will also an empty collection. This issue is happening in other deletions but they also involve firing a chain of jobs, this is just handled by a simple$administrator->delete()
in the admin controller, which has lead me to think it's something to do with the relationship between testing and model events.Beta Was this translation helpful? Give feedback.
All reactions