/**
  * Checks (de)activating the plugin (un)schedules "old" alerts for
  * deletion.
  *
  * It is important for Buoy alerts to be ephemeral in nature, not
  * necessarily stored in a database for a long time. This test is
  * used to make sure that merely activating the plugin is enough
  * to tell the plugin to delete any incident data that was made
  * 48 hours ago (or longer).
  *
  * This test also checks for the inverse: that this scheduled job
  * is automatically removed whenever the plugin is deactivated.
  *
  * Note that this test does *not* ensure the alert data itself is
  * deleted, only that the automatic job scheduler has the correct
  * information.
  *
  * @ticket 21
  */
 public function test_schedule_and_unschedule_delete_old_alerts_hook_on_activation_and_deactivation()
 {
     WP_Buoy_Plugin::activate();
     $this->assertEquals('hourly', wp_get_schedule('buoy_delete_old_alerts', array('-2 days')));
     WP_Buoy_Plugin::deactivate();
     $this->assertFalse(wp_get_schedule('buoy_delete_old_alerts', array('-2 days')));
 }
 public function test_activation_schedules_hourly_delete_old_alerts_hook()
 {
     WP_Buoy_Plugin::activate();
     $this->assertEquals('hourly', wp_get_schedule('buoy_delete_old_alerts', array('-2 days')));
 }