Skip to content

Commit f9ec387

Browse files
committed
Using assertContainsEquals for asserting
1 parent 28f3d1a commit f9ec387

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Unit/CheckoutTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function testPaymentsSuccess($jsonFile, $httpStatus)
225225

226226
$result = $service->payments($paymentRequest);
227227

228-
$this->assertContains($result['resultCode'], array('Authorised', 'RedirectShopper'));
228+
$this->assertContainsEquals($result['resultCode'], array('Authorised', 'RedirectShopper'));
229229
}
230230

231231
/**
@@ -258,7 +258,7 @@ public function testPaymentsSuccessWithArray($jsonFile, $httpStatus)
258258
);
259259
$result = $service->payments($params);
260260

261-
$this->assertContains($result['resultCode'], array('Authorised', 'RedirectShopper'));
261+
$this->assertContainsEquals($result['resultCode'], array('Authorised', 'RedirectShopper'));
262262
}
263263

264264
public static function successPaymentsProvider()
@@ -394,7 +394,7 @@ public function testPaymentsDetailsSuccessWithArray($jsonFile, $httpStatus)
394394

395395
$result = $service->paymentsDetails($params);
396396

397-
$this->assertContains($result['resultCode'], array('Authorised'));
397+
$this->assertContainsEquals($result['resultCode'], array('Authorised'));
398398
}
399399

400400
/**
@@ -419,7 +419,7 @@ public function testPaymentsDetailsSuccess($jsonFile, $httpStatus)
419419

420420
$result = $service->paymentsDetails($paymentDetailsRequest);
421421

422-
$this->assertContains($result['resultCode'], array('Authorised'));
422+
$this->assertContainsEquals($result['resultCode'], array('Authorised'));
423423
}
424424

425425
public static function successPaymentsDetailsProvider()
@@ -478,7 +478,7 @@ public function testPaymentsResultSuccess($jsonFile, $httpStatus)
478478

479479
$result = $service->paymentsResult($params);
480480

481-
$this->assertContains($result['resultCode'], array('Authorised'));
481+
$this->assertContainsEquals($result['resultCode'], array('Authorised'));
482482
}
483483

484484
public static function successPaymentsResultProvider()

0 commit comments

Comments
 (0)