Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
	/**
	 * 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' );
		}
	}
Beispiel #3
0
 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');
     }
 }