I created a Drupal 8 module and I would like know what is the best practice for testing my code?
For example, if I use hook_user_login(), how I can try my code without login/logout every time and how do I display my var_dump() result? (var_dump result not displayed due to redirection after login)