-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from matuslucenic/add_new_parameters
Added full name as mandatory data
- Loading branch information
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ public function testSend() | |
$guzzleClient = new \GuzzleHttp\Client(['handler' => $handler]); | ||
$client->setClient($guzzleClient); | ||
|
||
$createPayment = new CreatePayment(1000, '10001', '[email protected]', 'Product'); | ||
$createPayment = new CreatePayment(1000, '10001', '[email protected]', 'Janko Hrasko', 'Product'); | ||
|
||
$response = $client->send($createPayment); | ||
|
||
|
@@ -62,7 +62,7 @@ public function testSendTooSmallPrice() | |
$guzzleClient = new \GuzzleHttp\Client(['handler' => $handler]); | ||
$client->setClient($guzzleClient); | ||
|
||
$createPayment = new CreatePayment(1, '10001', '[email protected]', 'Product'); | ||
$createPayment = new CreatePayment(1, '10001', '[email protected]', 'Janko Hrasko', 'Product'); | ||
|
||
$this->expectException(ErrorCodeException::class); | ||
$this->expectExceptionCode(1107); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ class CreatePaymentTest extends TestCase | |
const TEST_PRICE = 100; | ||
const TEST_REF_ID = '1'; | ||
const TEST_EMAIL = '[email protected]'; | ||
const FULL_NAME = 'Janko Hrasko'; | ||
const TEST_LABEL = 'test'; | ||
const TEST_METHOD = 'ALL'; | ||
const TEST_CURRENCY = 'CZK'; | ||
|
@@ -26,6 +27,7 @@ private function create() | |
self::TEST_PRICE, | ||
self::TEST_REF_ID, | ||
self::TEST_EMAIL, | ||
self::FULL_NAME, | ||
self::TEST_LABEL, | ||
self::TEST_METHOD, | ||
self::TEST_CURRENCY | ||
|
@@ -54,6 +56,7 @@ public function test__constructLabelError() | |
self::TEST_PRICE, | ||
self::TEST_REF_ID, | ||
self::TEST_EMAIL, | ||
self::FULL_NAME, | ||
'soooooooooo-long-text-really-looooooong', | ||
self::TEST_METHOD, | ||
self::TEST_CURRENCY | ||
|