Logging is not working during phpunit testing? #1406
Unanswered
shadowspade
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I'm using lararavel 11, spatie activity logging v4.
im just trying to assert that a log is in the db, but there are no logs being created during testing. We are using phpunit with sqlite for testing. I do use activity()->enableLogging() in my test.
The logs should happen when updating the model
$model->update(). Yes they have the trait, yes they have the getAcitivtyLogOptions function. Thanks
Beta Was this translation helpful? Give feedback.
All reactions