@@ -73,7 +73,6 @@ public function test_payments_routing(): void
7373 ->setPaymentId ('mypaymentid ' );
7474 $ api ->call ();
7575
76- $ this ->assertInstanceOf (Request::class, $ api ->getRawRequest ());
7776 $ this ->assertInstanceOf (Response::class, $ api ->getRawResponse ());
7877
7978 $ this ->assertSame ($ this ->getExceptedUri ('payments/ ' ), $ api ->getRawRequest ()->getUri ()->getPath ());
@@ -120,7 +119,6 @@ public function test_multiple_payment_transaction_count(): void
120119 public function test_multiple_payment_transaction_data (): void
121120 {
122121 $ data = $ this ->getMultiplePaymentTransaction ()[0 ];
123- $ this ->assertInstanceOf (Transaction::class, $ data );
124122
125123 $ this ->assertSame ('1 ' , $ data ->TransactionId );
126124 $ this ->assertSame ('ccc1479c-37f9-4962-8d2c-662d75117e9d ' , $ data ->PaymentId );
@@ -144,24 +142,16 @@ public function test_multiple_payment_transaction_data(): void
144142 $ this ->assertSame (1.00 , $ data ->CapturedAmount );
145143 $ this ->assertSame (0.0 , $ data ->RefundedAmount );
146144 $ this ->assertSame (0.0 , $ data ->RecurringDefaultAmount );
147- $ this ->assertInstanceOf (\DateTime::class, $ data ->CreatedDate );
148- $ this ->assertInstanceOf (\DateTime::class, $ data ->UpdatedDate );
149145 $ this ->assertSame ('28-09-2010 ' , $ data ->CreatedDate ->format ('d-m-Y ' ));
150146 $ this ->assertSame ('28-09-2010 ' , $ data ->UpdatedDate ->format ('d-m-Y ' ));
151147 $ this ->assertSame ('CreditCard ' , $ data ->PaymentNature );
152148 $ this ->assertSame ('eCommerce ' , $ data ->PaymentSource );
153149 $ this ->assertSame (13.37 , $ data ->FraudRiskScore );
154150 $ this ->assertSame ('Fraud detection explanation ' , $ data ->FraudExplanation );
155151
156- // Payment nature service
157- $ this ->assertInstanceOf (PaymentNatureService::class, $ data ->PaymentNatureService );
158-
159152 // Payment Infos
160153 $ this ->assertCount (3 , $ data ->PaymentInfos );
161154
162- // Customer info
163- $ this ->assertInstanceOf (CustomerInfo::class, $ data ->CustomerInfo );
164-
165155 // ReconciliationIdentifiers
166156 $ this ->assertCount (1 , $ data ->ReconciliationIdentifiers );
167157 }
@@ -172,7 +162,6 @@ public function test_multiple_payment_transaction_data(): void
172162 public function test_multiple_payment_paymentnatureservice_data (): void
173163 {
174164 $ data = $ this ->getMultiplePaymentTransaction ()[0 ]->PaymentNatureService ;
175- $ this ->assertInstanceOf (PaymentNatureService::class, $ data );
176165
177166 $ this ->assertSame ('TestAcquirer ' , $ data ->name );
178167 $ this ->assertTrue ($ data ->SupportsRefunds );
@@ -234,36 +223,26 @@ public function test_multiple_payment_customerinfo_data(): void
234223 $ this ->assertSame ('support ' , $ data ->Username );
235224 $ this ->assertSame ('+45 7020 0056 ' , $ data ->CustomerPhone );
236225 $ this ->assertSame ('12345678 ' , $ data ->OrganisationNumber );
237- $ this ->assertInstanceOf (Country::class, $ data ->CountryOfOrigin );
238226
239227 $ country = $ data ->CountryOfOrigin ;
240- $ this ->assertInstanceOf (Country::class, $ country );
241228 $ this ->assertSame ('DK ' , $ country ->Country );
242229 $ this ->assertSame ('BillingAddress ' , $ country ->Source );
243230
244- $ this ->assertInstanceOf (Address::class, $ data ->BillingAddress );
245-
246231 $ address = $ data ->BillingAddress ;
247- $ this ->assertInstanceOf (Address::class, $ address );
248232 $ this ->assertSame ('Palle ' , $ address ->Firstname );
249233 $ this ->assertSame ('Simonsen ' , $ address ->Lastname );
250234 $ this ->assertSame ('Rosenkæret 13 ' , $ address ->Address );
251235 $ this ->assertSame ('Søborg ' , $ address ->City );
252236 $ this ->assertSame ('2860 ' , $ address ->PostalCode );
253237 $ this ->assertSame ('DK ' , $ address ->Country );
254238
255- $ this ->assertInstanceOf (Address::class, $ data ->ShippingAddress );
256-
257239 $ address = $ data ->ShippingAddress ;
258- $ this ->assertInstanceOf (Address::class, $ address );
259240 $ this ->assertNull ($ address ->Firstname );
260241 $ this ->assertNull ($ address ->Lastname );
261242 $ this ->assertNull ($ address ->Address );
262243 $ this ->assertNull ($ address ->City );
263244 $ this ->assertNull ($ address ->PostalCode );
264245 $ this ->assertNull ($ address ->Country );
265-
266- $ this ->assertInstanceOf (Address::class, $ data ->RegisteredAddress );
267246 }
268247
269248 /**
@@ -272,12 +251,10 @@ public function test_multiple_payment_customerinfo_data(): void
272251 public function test_multiple_payment_reconciliationidentifiers_data (): void
273252 {
274253 $ data = $ this ->getMultiplePaymentTransaction ()[0 ]->ReconciliationIdentifiers [0 ];
275- $ this ->assertInstanceOf (ReconciliationIdentifier::class, $ data );
276254
277255 $ this ->assertSame ('f4e2533e-c578-4383-b075-bc8a6866784a ' , $ data ->Id );
278256 $ this ->assertSame (1.00 , $ data ->Amount );
279257 $ this ->assertSame ('captured ' , $ data ->Type );
280- $ this ->assertInstanceOf (\DateTime::class, $ data ->Date );
281258 $ this ->assertSame ('28-09-2010 ' , $ data ->Date ->format ('d-m-Y ' ));
282259 $ this ->assertSame ('978 ' , $ data ->currency );
283260 }
0 commit comments