Improve test coverage.

This commit is contained in:
James Cole
2019-07-27 13:54:06 +02:00
parent d94d34ca63
commit 67c0ef6ec6
29 changed files with 788 additions and 346 deletions

View File

@@ -53,7 +53,7 @@ class CurrencyTransformerTest extends TestCase
{
// mocks and prep:
$parameters = new ParameterBag;
$currency = TransactionCurrency::first();
$currency = $this->getEuro();
$transformer = app(CurrencyTransformer::class);
$transformer->setParameters($parameters);
@@ -75,7 +75,7 @@ class CurrencyTransformerTest extends TestCase
{
// mocks and prep:
$parameters = new ParameterBag;
$currency = TransactionCurrency::first();
$currency = $this->getEuro();
$parameters->set('defaultCurrency', $currency);
$transformer = app(CurrencyTransformer::class);
$transformer->setParameters($parameters);