File tree Expand file tree Collapse file tree
tests/Model/Objects/NotificationBody Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99class BasicPaymentTest extends TestCase
1010{
11+ /**
12+ * @dataProvider validTestNotificationProvider
13+ */
1114 public function testIsTestNotificationReturnsTrue ($ transactionId )
1215 {
1316 $ payment = new BasicPayment ();
14- $ payment ->tr_id = new TransactionId ($ transactionId );
17+ $ payment ->setObjectValues ($ payment , [
18+ 'tr_id ' => $ transactionId ,
19+ ]);
1520
1621 $ this ->assertTrue ($ payment ->isTestNotification ());
1722 }
@@ -22,7 +27,9 @@ public function testIsTestNotificationReturnsTrue($transactionId)
2227 public function testIsTestNotificationReturnsFalse ($ transactionId )
2328 {
2429 $ payment = new BasicPayment ();
25- $ payment ->tr_id = new TransactionId ($ transactionId );
30+ $ payment ->setObjectValues ($ payment , [
31+ 'tr_id ' => $ transactionId ,
32+ ]);
2633
2734 $ this ->assertFalse ($ payment ->isTestNotification ());
2835 }
You can’t perform that action at this time.
0 commit comments