Skip to content

Commit

Permalink
Merge ceef5a7 into 2511a70
Browse files Browse the repository at this point in the history
  • Loading branch information
levelfivehub committed Jul 28, 2019
2 parents 2511a70 + ceef5a7 commit 8622971
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/CommandOrQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testCommand($errorExpected = false, $input = [], $response = fal

self::assertInstanceOf(Command::class, $command);

if ($response) {
if ($response || is_array($response)) {
self::assertEquals($command->getBody(), $response);
}
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Entity/Transaction/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testTransaction()
'ledger_entry_id' => '1233123-123123-21321',
'transaction_id' => '123123',
'amount' => '123.22',
'ledger_entry_type' => 'cash',
'ledger_entry_type' => 'credit',
];

$entity = new Transaction($response);
Expand All @@ -23,6 +23,8 @@ public function testTransaction()
self::assertEquals('1233123-123123-21321', $entity->getLedgerEntryId());
self::assertEquals('123123', $entity->getTransactionId());
self::assertEquals('123.22', $entity->getAmount());
self::assertEquals('cash', $entity->getLedgerEntryType());
self::assertEquals('credit', $entity->getLedgerEntryType());
self::assertTrue($entity->isCredit());
self::assertFalse($entity->isDebit());
}
}

0 comments on commit 8622971

Please sign in to comment.