-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aashish
committed
Oct 11, 2023
1 parent
7eb6401
commit 5d3543d
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
tests/unit/includes/gateway/class-omise-payment-duitnow-obw-test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/class-omise-offsite-test.php'; | ||
|
||
class Omise_Payment_DuitNow_OBW_Test extends Omise_Offsite_Test | ||
{ | ||
public function setUp(): void | ||
{ | ||
$this->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); | ||
} | ||
} |