Skip to content

Commit

Permalink
Added PaymentBatch test. #67
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Nov 9, 2017
1 parent 368acee commit e68d133
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Model/Generated/Object/NotificationUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use bunq\Model\Generated\Endpoint\MasterCardAction;
use bunq\Model\Generated\Endpoint\MonetaryAccountBank;
use bunq\Model\Generated\Endpoint\Payment;
use bunq\Model\Generated\Endpoint\PaymentBatch;
use bunq\Model\Generated\Object\NotificationUrl;
use bunq\test\BunqSdkTestBase;
use bunq\Util\FileUtil;
Expand All @@ -29,6 +30,7 @@ class NotificationUrlTest extends BunqSdkTestBase
const GET_DRAFT_PAYMENT = 'getDraftPayment';
const GET_MASTER_CARD_ACTION = 'getMasterCardAction';
const GET_MONETARY_ACCOUNT_BANK = 'getMonetaryAccountBank';
const GET_PAYMENT_BATCH = 'getPaymentBatch';

/**
* Assertion errors.
Expand All @@ -48,6 +50,7 @@ class NotificationUrlTest extends BunqSdkTestBase
const JSON_PATH_DRAFT_PAYMENT_MODEL = self::BASE_PATH_JSON_MODEL . '/DraftPayment.json';
const JSON_PATH_MASTER_CARD_ACTION_MODEL = self::BASE_PATH_JSON_MODEL . '/MasterCardAction.json';
const JSON_PATH_MONETARY_ACCOUNT_BANK_MODEL = self::BASE_PATH_JSON_MODEL . '/MonetaryAccountBank.json';
const JSON_PATH_PAYMENT_BATCH_MODEL = self::BASE_PATH_JSON_MODEL . '/PaymentBatch.json';

/**
* Model root key.
Expand Down Expand Up @@ -100,6 +103,14 @@ public function testGetMonetaryAccountModel()

/**
*/
public function testPaymentBatchModel()
{
$this->executeTest(
self::JSON_PATH_PAYMENT_BATCH_MODEL,
PaymentBatch::class,
self::GET_PAYMENT_BATCH
);
}
public function testMasterCardAction()
{
$this->executeTest(
Expand Down

0 comments on commit e68d133

Please sign in to comment.