<?php // this seems to be the preferred way to handle an uninstall if (!defined('WP_UNINSTALL_PLUGIN')) { exit; } require_once 'core.php'; Draft_Post_Revisions::uninstall();
function test_plugin_uninstalls() { Draft_Post_Revisions::uninstall(); $options = get_option(Draft_Post_Revisions::options_key()); $this->assertFalse($options); }