From abeec06078f70892c133aaf75a80004b7455f1f4 Mon Sep 17 00:00:00 2001 From: cyrrill Date: Thu, 24 Dec 2015 04:44:34 -0600 Subject: [PATCH] Test client id in checksum --- tests/unit/Paymill/Models/Request/ChecksumTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/Paymill/Models/Request/ChecksumTest.php b/tests/unit/Paymill/Models/Request/ChecksumTest.php index 96e3d0a..c388f32 100755 --- a/tests/unit/Paymill/Models/Request/ChecksumTest.php +++ b/tests/unit/Paymill/Models/Request/ChecksumTest.php @@ -42,6 +42,7 @@ protected function tearDown() public function setGetTest() { $sample = array( + 'client_id' => 'client_88a388d9dd48f86c3136', 'checksum_type' => Checksum::TYPE_PAYPAL, 'checksum_action' => Checksum::ACTION_TRANSACTION, 'amount' => '200', @@ -94,6 +95,7 @@ public function setGetTest() ); $this->_model + ->setClientId($sample['client_id']) ->setChecksumType($sample['checksum_type']) ->setChecksumAction($sample['checksum_action']) ->setAmount($sample['amount']) @@ -110,6 +112,7 @@ public function setGetTest() ->setReusablePaymentDescription($sample['reusable_payment_description']) ; + $this->assertEquals($this->_model->getClientId(), $sample['client_id']); $this->assertEquals($this->_model->getChecksumType(), $sample['checksum_type']); $this->assertEquals($this->_model->getChecksumAction(), $sample['checksum_action']); $this->assertEquals($this->_model->getAmount(), $sample['amount']); @@ -159,6 +162,7 @@ public function parameterizeTestGetOne(Checksum $model) public function parameterizeTestCreate(Checksum $model) { $parameterArray = array(); + $parameterArray['client_id'] = 'client_88a388d9dd48f86c3136'; $parameterArray['checksum_type'] = Checksum::TYPE_PAYPAL; $parameterArray['checksum_action'] = Checksum::ACTION_TRANSACTION; $parameterArray['amount'] = '200';