Skip to content

Commit aea98f3

Browse files
committed
Add base gateway test setup, update tests dependency
1 parent a14cdda commit aea98f3

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"php": "^7.2||^8"
4747
},
4848
"require-dev": {
49-
"omnipay/tests": "^4.1",
49+
"omnipay/tests": "^4.2",
5050
"squizlabs/php_codesniffer": "^3.5",
5151
"http-interop/http-factory-guzzle": "^1.1"
5252
},

tests/GatewayTest.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Omnipay\WindcaveHpp;
4+
5+
use Omnipay\Tests\GatewayTestCase;
6+
7+
class GatewayTest extends GatewayTestCase
8+
{
9+
/** @var array */
10+
protected $options;
11+
12+
public function setUp(): void
13+
{
14+
parent::setUp();
15+
16+
$this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
17+
18+
$this->options = [
19+
'amount' => '1.45',
20+
'apiUsername' => 'Test_Merchant',
21+
'apiKey' => 'ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890',
22+
'currency' => 'NZD',
23+
'cancelUrl' => 'https://www.example.com/cancel',
24+
'notifyUrl' => 'https://www.example.com/notify',
25+
'returnUrl' => 'https://www.example.com/return',
26+
'transactionId' => '123abc',
27+
'testMode' => true,
28+
];
29+
}
30+
}

0 commit comments

Comments
 (0)