6 use Omnipay\Tests\TestCase;
8 class FetchTransactionRequestTest
extends TestCase
15 public function setUp()
17 $client = $this->getHttpClient();
19 $request = $this->getHttpRequest();
26 $this->request->setTransactionReference(
'ABC-123');
27 $this->request->setUsername(
'testuser');
28 $this->request->setPassword(
'testpass');
29 $this->request->setSignature(
'SIG');
30 $this->request->setSubject(
'SUB');
33 $expected[
'METHOD'] =
'GetTransactionDetails';
34 $expected[
'TRANSACTIONID'] =
'ABC-123';
35 $expected[
'USER'] =
'testuser';
36 $expected[
'PWD'] =
'testpass';
37 $expected[
'SIGNATURE'] =
'SIG';
38 $expected[
'SUBJECT'] =
'SUB';
41 $this->assertEquals($expected, $this->request->getData());