Documentation

CreatePaymentServiceTest extends TestCase
in package

Tags

Table of Contents

$client  : Client|null
$repository  : CreatePaymentService|null
setUp()  : void
tearDown()  : void
test__createPayment()  : void
test__createPayment__ThrowsTransactionServiceException()  : void
Checks that when the client throws an ApiException, that a TransactionServiceException is thrown
test__createPayment__ThrowsTransactionServiceExceptionForBadRequest()  : void
Checks that when the CreatePaymentRequest $request is missing a necessary property, that a descriptive error is thrown
test__createPayment__ThrowsTransactionServiceExceptionForMissingKeys()  : void
Checks that when a transaction's metadata key is missing, an error is thrown describing which key is missing

Properties

Methods

test__createPayment()

public test__createPayment() : void
Tags
covers
covers
covers
covers
covers
covers
throws
Exception
Return values
void

test__createPayment__ThrowsTransactionServiceException()

Checks that when the client throws an ApiException, that a TransactionServiceException is thrown

public test__createPayment__ThrowsTransactionServiceException() : void
Tags
covers
throws
Exception
Return values
void

test__createPayment__ThrowsTransactionServiceExceptionForBadRequest()

Checks that when the CreatePaymentRequest $request is missing a necessary property, that a descriptive error is thrown

public test__createPayment__ThrowsTransactionServiceExceptionForBadRequest() : void
Tags
throws
TransactionServiceException
Return values
void

test__createPayment__ThrowsTransactionServiceExceptionForMissingKeys()

Checks that when a transaction's metadata key is missing, an error is thrown describing which key is missing

public test__createPayment__ThrowsTransactionServiceExceptionForMissingKeys() : void
Tags
covers
covers
throws
TransactionServiceException
Return values
void

Search results