示例#1
0
 /**
  * Set up for the tests.
  */
 public function setUp()
 {
     $this->install_function = array($GLOBALS['WPML_Plugin'], 'install');
     $this->uninstall_function = array($GLOBALS['WPML_Plugin'], 'uninstall');
     // You must set the path to your plugin here.
     $this->plugin_file = dirname(dirname(__FILE__)) . '/wp-mail-logging_init.php';
     // Don't forget to call the parent's setUp(), or the plugin won't get installed.
     parent::setUp();
 }
 /**
  * @since 0.3.0
  */
 public function setUp()
 {
     if (!isset($this->wordpoints_network_active) && $this->network_active) {
         $this->wordpoints_network_active = true;
     }
     if (!isset($this->wordpoints_network_active)) {
         $this->wordpoints_network_active = (bool) getenv('WORDPOINTS_NETWORK_ACTIVE');
     }
     parent::setUp();
 }