Giuseppe Mazzapica
Giuseppe Mazzapica
I'm keeping this issue open, because I often got asked similar questions. I will change the title for the benefit of people who'll come later.
Not a fan of this. This add maintenance to the project. Considering the existence of [WP Test Utils](https://github.com/Yoast/wp-test-utils#basic-testcase-for-use-with-brainmonkey), @jrfnl I will close this.
I recently tested redefining core PHP functions and it works well even with coverage without class alias or anything like that. I guess this was fixed upstream with the more...
It seems this is an incompatibility with WP_Mock, which is not really supported anymore, I even saw 10up code in the wild that use Brain Monkey. For that, and for...
@wppunk @abrain, I'm sorry for the late answer here. Has anyone of you tested if this is something that applies to Mockery or it is something that only happens on...
This is old. Brain Monkey v2 does not load Patchwork from autoload anymore.
Closing this issue because there's nothing to do here. Once again, Brain Monkey is a tool to test WordPress code without loading WordPress. If one wants to run integration/e2e tests...
Changed my mind about keeping issues open for answered questions. I guess if this is necessary it should be added to documentation.
Thanks for the reminder, redirect is now setup
@javagee What Guido said. `when` only enforces that _when_ the function is called, it will return true. But if it is not called... nothing happens. Using `expect`, you're instead saying...