public function test_register__success()
 {
     EE_Register_Payment_Method::deregister($this->_pmt_name);
     $this->_pretend_addon_hook_time();
     //double-check no one else is filtering payment method types
     remove_all_filters('FHEE__EE_Payment_Method_Manager__register_payment_methods__payment_methods_to_register');
     //first verify it doesn't already exists
     $pmt_exists = EE_Payment_Method_Manager::reset()->payment_method_type_exists($this->_pmt_name);
     $this->assertFalse($pmt_exists);
     EE_Register_Payment_Method::register($this->_pmt_name, $this->_pmt_args);
     //now check it does exist
     $pmt_exists = EE_Payment_Method_Manager::instance()->payment_method_type_exists($this->_pmt_name, TRUE);
     $this->assertTrue($pmt_exists);
 }
 public function tearDown()
 {
     EE_Register_Payment_Method::deregister('onsite');
     EE_Register_Payment_Method::deregister('offsite');
     parent::tearDown();
 }