From ab8e8de0649fe60ca8a0af69d62cb3a95d4242ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Ba=C5=9F?= Date: Sat, 3 Nov 2018 13:46:49 +0300 Subject: [PATCH] Some request values fixed --- tests/Feature/Expenses/BillsTest.php | 2 +- tests/Feature/Incomes/InvoicesTest.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Expenses/BillsTest.php b/tests/Feature/Expenses/BillsTest.php index dc5008c0c..0ce38819e 100644 --- a/tests/Feature/Expenses/BillsTest.php +++ b/tests/Feature/Expenses/BillsTest.php @@ -87,7 +87,7 @@ class BillsTest extends FeatureTestCase { $amount = $this->faker->randomFloat(2, 2); - $items = [['name' => 'urun', 'item_id' => null, 'quantity' => '1', 'price' => $amount, 'currency' => 'USD', 'tax_id' => null]]; + $items = [['name' => $this->faker->text(5), 'item_id' => null, 'quantity' => '1', 'price' => $amount, 'currency' => 'USD', 'tax_id' => null]]; $data = [ 'vendor_id' => '0', diff --git a/tests/Feature/Incomes/InvoicesTest.php b/tests/Feature/Incomes/InvoicesTest.php index d29d5aed1..7dc0839a3 100644 --- a/tests/Feature/Incomes/InvoicesTest.php +++ b/tests/Feature/Incomes/InvoicesTest.php @@ -84,6 +84,11 @@ class InvoicesTest extends FeatureTestCase 'due_at' => $this->faker->date(), 'invoice_number' => $this->faker->lexify('INV ???'), 'order_number' => $this->faker->randomDigit, + 'item_id' => null, + 'item_name' => $this->faker->text(5), + 'item_quantity' => '1', + 'item_price' => $amount, + 'item_currency' => setting('general.default_currency'), 'discount' => '0', 'notes' => $this->faker->text(5), 'category_id' => $this->company->categories()->type('income')->first()->id,