Inheritance: extends WP_UnitTestCase
Example #1
0
 /**
  * Clean up after each test. Reset our mocks
  *
  * @since 0.1.0
  */
 public function tearDown()
 {
     parent::tearDown();
     //make sure no one attached to this
     remove_filter('ep_sync_terms_allow_hierarchy', array($this, 'ep_allow_multiple_level_terms_sync'), 100);
     $this->fired_actions = array();
 }
Example #2
0
 /**
  * Prevents weird MySQLi error.
  *
  * @since 1.0
  */
 public function __construct()
 {
     if (property_exists(__CLASS__, 'ignore_files')) {
         self::$ignore_files = true;
     }
     $this->plugin_path = str_replace('/tests/includes', '', dirname(__FILE__));
 }
Example #3
0
 /**
  * Clean up after each test. Reset our mocks
  *
  * @since 0.1.0
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->fired_actions = array();
     $sites = ep_get_sites();
     $indexes = array();
     foreach ($sites as $site) {
         switch_to_blog($site['blog_id']);
         ep_delete_index();
         restore_current_blog();
     }
     ep_delete_network_alias();
 }
 /**
  * Clean up after each test. Reset our mocks
  *
  * @since 0.1.0
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->fired_actions = array();
 }
 /**
  * Prevents weird MySQLi error.
  *
  * @since 1.0
  */
 public function __construct()
 {
     if (property_exists(__CLASS__, 'ignore_files')) {
         self::$ignore_files = true;
     }
 }
 /**
  * Prevents weird MySQLi error.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$ignore_files = true;
 }