From 44b8e48c3a0607516abb018364102dd4b9eacc9c Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 30 Dec 2016 13:54:11 +0100 Subject: [PATCH] Fix tests. --- tests/acceptance/Controllers/PiggyBankControllerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/Controllers/PiggyBankControllerTest.php b/tests/acceptance/Controllers/PiggyBankControllerTest.php index 66e2dce67c..edc15d9330 100644 --- a/tests/acceptance/Controllers/PiggyBankControllerTest.php +++ b/tests/acceptance/Controllers/PiggyBankControllerTest.php @@ -123,7 +123,7 @@ class PiggyBankControllerTest extends TestCase */ public function testPostAdd() { - $data = ['amount' => 1]; + $data = ['amount' => '1.123']; $this->be($this->user()); $this->call('post', route('piggy-banks.add', [1]), $data); $this->assertResponseStatus(302); @@ -136,7 +136,7 @@ class PiggyBankControllerTest extends TestCase */ public function testPostRemove() { - $data = ['amount' => 1]; + $data = ['amount' => '1.123']; $this->be($this->user()); $this->call('post', route('piggy-banks.remove', [1]), $data); $this->assertResponseStatus(302); @@ -184,7 +184,7 @@ class PiggyBankControllerTest extends TestCase $this->session(['piggy-banks.create.url' => 'http://localhost']); $data = [ 'name' => 'Piggy ' . rand(999, 10000), - 'targetamount' => 100, + 'targetamount' => '100.123', 'account_id' => 2, 'amount_currency_id_targetamount' => 1, @@ -204,7 +204,7 @@ class PiggyBankControllerTest extends TestCase $this->session(['piggy-banks.edit.url' => 'http://localhost']); $data = [ 'name' => 'Updated Piggy ' . rand(999, 10000), - 'targetamount' => 100, + 'targetamount' => '100.123', 'account_id' => 2, 'amount_currency_id_targetamount' => 1,