Revert WordPress default options after a PHPUnit test has run
tl;dr: is there a way to make changes to WordPress options during a PHPUnit test suite execution, and have the changes reverted to the WordPress defaults before the next test suite is executed, without writing a custom teardown function? Yes, and no. No, you cannot use the code you currently have and expect this result. … Read more