makePartial(); Functions\expect('dbDelta')->once(); Functions\expect('update_option')->once()->with('lit_mcp_db_version', '1'); Functions\when('wp_next_scheduled')->justReturn(false); Functions\expect('wp_schedule_event')->once(); Functions\expect('delete_option')->once()->with('wpmedia_mcp_oauth_rewrite_version'); Lifecycle::activate(); } public function testDeactivateRemovesCronTransientAndStoredRewriteRules(): void { Functions\expect('wp_clear_scheduled_hook')->once()->with('lit_mcp_log_cleanup'); Functions\expect('delete_transient')->once()->with('lit_mcp_endpoint_check'); Functions\expect('delete_option')->once()->with('rewrite_rules'); Lifecycle::deactivate(); } }