Skip to content

Commit

Permalink
Test client id in checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrrill committed Dec 24, 2015
1 parent 4f5bae8 commit abeec06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/Paymill/Models/Request/ChecksumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -94,6 +95,7 @@ public function setGetTest()
);

$this->_model
->setClientId($sample['client_id'])
->setChecksumType($sample['checksum_type'])
->setChecksumAction($sample['checksum_action'])
->setAmount($sample['amount'])
Expand All @@ -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']);
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit abeec06

Please sign in to comment.