Improve test coverage.

This commit is contained in:
James Cole
2019-06-29 08:14:28 +02:00
parent cf904eb677
commit 003d07504f
33 changed files with 447 additions and 269 deletions

View File

@@ -502,7 +502,7 @@ class PiggyBankControllerTest extends TestCase
$this->session(['piggy-banks.create.uri' => 'http://localhost']);
$data = [
'name' => 'Piggy ' . random_int(999, 10000),
'name' => 'Piggy ' . $this->randomInt(),
'targetamount' => '100.123',
'account_id' => 2,
'amount_currency_id_targetamount' => 1,
@@ -533,7 +533,7 @@ class PiggyBankControllerTest extends TestCase
$this->session(['piggy-banks.edit.uri' => 'http://localhost']);
$data = [
'id' => 3,
'name' => 'Updated Piggy ' . random_int(999, 10000),
'name' => 'Updated Piggy ' . $this->randomInt(),
'targetamount' => '100.123',
'account_id' => 2,
'amount_currency_id_targetamount' => 1,