Can I simulate a user being logged in from a WP_UnitTestCase?

I have some logic in my code that’s based on whether or not the user is logged in. How do I test it from my WP_UnitTestCase?

Related posts

Leave a Reply

1 comment