diff --git a/tests/unit/includes/gateway/class-omise-payment-duitnow-obw-test.php b/tests/unit/includes/gateway/class-omise-payment-duitnow-obw-test.php new file mode 100644 index 00000000..02a54990 --- /dev/null +++ b/tests/unit/includes/gateway/class-omise-payment-duitnow-obw-test.php @@ -0,0 +1,33 @@ +sourceType = 'duitnow_obw'; + parent::setUp(); + require_once __DIR__ . '/../../../../includes/gateway/class-omise-payment-duitnow-obw.php'; + + // if (!function_exists('wp_enqueue_script')) { + // function wp_enqueue_script() {} + // } + + // if (!function_exists('plugins_url')) { + // function plugins_url() {} + // } + + // dummy version + // if (!defined('WC_VERSION')) { + // define('WC_VERSION', '1.0.0'); + // } + } + + public function testCharge() + { + $_POST['source'] = ['bank' => 'SCB']; + $obj = new Omise_Payment_DuitNow_OBW(); + $this->getChargeTest($obj); + } +}