function and creating post function call log in test function?
Why Not? How can I get current user information?
Supply some static info inside the test to the create post function
You can, and you can also inject a created user to the db before running the test and removing after
That's not unit testing
Обсуждают сегодня