Skip to content

Commit

Permalink
Merge 9814ad3 into 400588c
Browse files Browse the repository at this point in the history
  • Loading branch information
paypay-ayas committed Sep 3, 2020
2 parents 400588c + 9814ad3 commit bc0fcec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ script: make run_mock
after_success:
- bash <(curl -s https://copilot.blackducksoftware.com/ci/travis/scripts/upload)
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- travis_retry php vendor/bin/php-coveralls -v

8 changes: 8 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true">
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-php" target="./build/cov/clover.xml"/>
</logging>
<testsuites>
<testsuite name="QR Code">
<file> tests/QrTest.php</file>
Expand Down
9 changes: 6 additions & 3 deletions tests/ContinuousPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ public function Create()
"amount" => 12,
"currency" => "JPY"
];
$CCPPayload->setMerchantPaymentId(uniqid('TESTMERCH_PAY_ID'))->setRequestedAt()->setUserAuthorizationId($this->config['uaid'])->setAmount($amount);
$CCPPayload
->setMerchantPaymentId(uniqid('TESTMERCH_PAY_ID'))
->setRequestedAt()
->setUserAuthorizationId($this->config['uaid'])
->setAmount($amount);
// Get data for QR code
$resp = $client->payment->createContinuousPayment($CCPPayload);
$resultInfo = $resp['resultInfo'];
Expand All @@ -42,7 +46,7 @@ public function Cancel()
$resultInfo = $resp['resultInfo'];
$this->assertEquals('REQUEST_ACCEPTED', $resultInfo['code']);
}

/**
* tests Create And Cancel
*
Expand All @@ -53,5 +57,4 @@ public function testCreateAndCancel()
$this->Create();
$this->Cancel();
}

}

0 comments on commit bc0fcec

Please sign in to comment.