Provides Give-specific setup/tear down/assert methods and helper functions.
부터: 1.0
상속: extends WP_UnitTestCase
예제 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->_roles = new Give_Roles();
     $this->_roles->add_roles();
     $this->_roles->add_caps();
 }
예제 #2
0
 public function tearDown()
 {
     parent::tearDown();
 }
예제 #3
0
 public function setUp()
 {
     parent::setUp();
     wp_set_current_user(0);
 }
예제 #4
0
 public function tearDown()
 {
     parent::tearDown();
     remove_action('give_api_output_override_xml', array($this, 'override_api_xml_format'));
 }
예제 #5
0
 /**
  * SetUp test class.
  *
  * @since 1.3.2
  */
 public function setUp()
 {
     parent::setUp();
 }
예제 #6
0
 /**
  * Tear it Down
  */
 public function tearDown()
 {
     parent::tearDown();
     remove_action('give_api_output_override_xml', array($this, 'override_api_xml_format'));
     Give_Helper_Payment::delete_payment($this->_payment_id);
 }
예제 #7
0
 /**
  * Tear it Down
  */
 public function tearDown()
 {
     parent::tearDown();
     Give_Helper_Form::delete_form($this->_simple_form->ID);
     Give_Helper_Form::delete_form($this->_multi_form->ID);
 }