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
$client
private
Client|null
$client
Tags
$repository
private
CreatePaymentService|null
$repository
Tags
Methods
setUp()
public
setUp() : void
Tags
Return values
void —tearDown()
public
tearDown() : void
Tags
Return values
void —test__createPayment()
public
test__createPayment() : void
Tags
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
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
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