File tree Expand file tree Collapse file tree 6 files changed +25
-25
lines changed
tests/Omnipay/Neteller/Message Expand file tree Collapse file tree 6 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ public function getData()
23
23
if ($ transactionId = $ this ->getTransactionId ()) {
24
24
25
25
return array (
26
- 'id ' => $ transactionId ,
26
+ 'id ' => ( string ) $ transactionId ,
27
27
'refType ' => 'merchantRefId '
28
28
);
29
29
30
30
} elseif ($ transactionReference = $ this ->getTransactionReference ()) {
31
31
32
32
return array (
33
- 'id ' => $ transactionReference
33
+ 'id ' => ( string ) $ transactionReference
34
34
);
35
35
36
36
} else {
Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ public function getData()
46
46
47
47
return array (
48
48
'payeeProfile ' => array (
49
- 'email ' => $ this ->getEmail ()
49
+ 'email ' => ( string ) $ this ->getEmail ()
50
50
),
51
51
'transaction ' => array (
52
- 'merchantRefId ' => $ this ->getTransactionId (),
53
- 'amount ' => $ this ->getAmountInteger (),
54
- 'currency ' => $ this ->getCurrency (),
52
+ 'merchantRefId ' => ( string ) $ this ->getTransactionId (),
53
+ 'amount ' => ( int ) $ this ->getAmountInteger (),
54
+ 'currency ' => ( string ) $ this ->getCurrency (),
55
55
),
56
- 'message ' => $ this ->getDescription ()
56
+ 'message ' => ( string ) $ this ->getDescription ()
57
57
);
58
58
}
59
59
Original file line number Diff line number Diff line change @@ -65,14 +65,14 @@ public function getData()
65
65
return array (
66
66
'paymentMethod ' => array (
67
67
'type ' => 'neteller ' ,
68
- 'value ' => $ this ->getEmail ()
68
+ 'value ' => ( string ) $ this ->getEmail ()
69
69
),
70
70
'transaction ' => array (
71
- 'merchantRefId ' => $ this ->getTransactionId (),
72
- 'amount ' => $ this ->getAmountInteger (),
73
- 'currency ' => $ this ->getCurrency (),
71
+ 'merchantRefId ' => ( string ) $ this ->getTransactionId (),
72
+ 'amount ' => ( int ) $ this ->getAmountInteger (),
73
+ 'currency ' => ( string ) $ this ->getCurrency (),
74
74
),
75
- 'verificationCode ' => $ this ->getVerificationCode ()
75
+ 'verificationCode ' => ( string ) $ this ->getVerificationCode ()
76
76
);
77
77
}
78
78
Original file line number Diff line number Diff line change @@ -15,26 +15,26 @@ public function setUp()
15
15
parent ::setUp ();
16
16
$ this ->request = new FetchTransactionRequest ($ this ->getHttpClient (), $ this ->getHttpRequest ());
17
17
$ this ->request ->initialize (array (
18
- 'transactionId ' => ' TX4567890 '
18
+ 'transactionId ' => 4567890
19
19
));
20
20
}
21
21
22
22
public function testGetData ()
23
23
{
24
24
$ this ->request ->initialize (array (
25
- 'transactionId ' => ' TX4567890 '
25
+ 'transactionId ' => 4567890
26
26
));
27
27
28
28
$ data = $ this ->request ->getData ();
29
- $ this ->assertSame ('TX4567890 ' , $ data ['id ' ]);
29
+ $ this ->assertSame ('4567890 ' , $ data ['id ' ]);
30
30
$ this ->assertSame ('merchantRefId ' , $ data ['refType ' ]);
31
31
32
32
$ this ->request ->initialize (array (
33
- 'transactionReference ' => ' RF4567890 '
33
+ 'transactionReference ' => 4567890
34
34
));
35
35
36
36
$ data = $ this ->request ->getData ();
37
- $ this ->assertSame ('RF4567890 ' , $ data ['id ' ]);
37
+ $ this ->assertSame ('4567890 ' , $ data ['id ' ]);
38
38
$ this ->assertArrayNotHasKey ('refType ' , $ data );
39
39
40
40
$ this ->request ->initialize (array ());
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ public function setUp()
16
16
$ this ->request = new PayoutRequest ($ this ->getHttpClient (), $ this ->getHttpRequest ());
17
17
$ this ->request ->initialize (array (
18
18
'email ' => 'netellertest_USD@neteller.com ' ,
19
- 'verificationCode ' => ' 270955 ' ,
20
- 'transactionId ' => ' TX4567890 ' ,
19
+ 'verificationCode ' => 270955 ,
20
+ 'transactionId ' => 4567890 ,
21
21
'description ' => 'Free Text Description ' ,
22
- 'amount ' => ' 12.34 ' ,
22
+ 'amount ' => 12.34 ,
23
23
'currency ' => 'USD '
24
24
));
25
25
}
@@ -28,7 +28,7 @@ public function testGetData()
28
28
{
29
29
$ data = $ this ->request ->getData ();
30
30
$ this ->assertSame ('netellertest_USD@neteller.com ' , $ data ['payeeProfile ' ]['email ' ]);
31
- $ this ->assertSame ('TX4567890 ' , $ data ['transaction ' ]['merchantRefId ' ]);
31
+ $ this ->assertSame ('4567890 ' , $ data ['transaction ' ]['merchantRefId ' ]);
32
32
$ this ->assertSame (1234 , $ data ['transaction ' ]['amount ' ]);
33
33
$ this ->assertSame ('USD ' , $ data ['transaction ' ]['currency ' ]);
34
34
$ this ->assertSame ('Free Text Description ' , $ data ['message ' ]);
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ public function setUp()
16
16
$ this ->request = new PurchaseRequest ($ this ->getHttpClient (), $ this ->getHttpRequest ());
17
17
$ this ->request ->initialize (array (
18
18
'email ' => 'netellertest_USD@neteller.com ' ,
19
- 'verificationCode ' => ' 270955 ' ,
20
- 'transactionId ' => ' TX4567890 ' ,
21
- 'amount ' => ' 12.34 ' ,
19
+ 'verificationCode ' => 270955 ,
20
+ 'transactionId ' => 4567890 ,
21
+ 'amount ' => 12.34 ,
22
22
'currency ' => 'USD '
23
23
));
24
24
}
@@ -28,7 +28,7 @@ public function testGetData()
28
28
$ data = $ this ->request ->getData ();
29
29
$ this ->assertSame ('neteller ' , $ data ['paymentMethod ' ]['type ' ]);
30
30
$ this ->assertSame ('netellertest_USD@neteller.com ' , $ data ['paymentMethod ' ]['value ' ]);
31
- $ this ->assertSame ('TX4567890 ' , $ data ['transaction ' ]['merchantRefId ' ]);
31
+ $ this ->assertSame ('4567890 ' , $ data ['transaction ' ]['merchantRefId ' ]);
32
32
$ this ->assertSame (1234 , $ data ['transaction ' ]['amount ' ]);
33
33
$ this ->assertSame ('USD ' , $ data ['transaction ' ]['currency ' ]);
34
34
$ this ->assertSame ('270955 ' , $ data ['verificationCode ' ]);
You can’t perform that action at this time.
0 commit comments