Mock integration for WordPress functions in PHPUnit