Ejemplo n.º 1
0
<?php

// Load Composer autoload.
require __DIR__ . '/../vendor/autoload.php';
// Load test data file.
WP_Test_Suite::load_files(__DIR__ . '/class-wc-order.php');
// Run the WordPress test suite.
WP_Test_Suite::run();
Ejemplo n.º 2
0
 /**
  * Set test root.
  *
  * @param string $test_rot
  */
 public static function set_test_root($test_root)
 {
     self::$test_root = $test_root;
 }