/** * Teardown for the whole test suite */ protected function module_teardown() { $this->user->delete(); foreach ($this->types as $type => $module) { EventLog::unregister_type($type, $module); } $this->types = null; }
/** * Unregister the Pingback event type on deactivation * @todo Should we be doing this? */ public function action_plugin_deactivation( $file ) { if ( realpath( $file ) == __FILE__ ) { EventLog::unregister_type( 'Pingback' ); } }
public function action_plugin_deactivation($file) { if (realpath($file) == __FILE__) { EventLog::unregister_type('autoapprove', 'autoapprove'); } }
public function action_plugin_deactivation($file) { if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) { EventLog::unregister_type('ThreadedComment'); } }