Skip to content

Commit

Permalink
Some request values fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Batuhan Baş committed Nov 3, 2018
1 parent 9709899 commit ab8e8de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Feature/Expenses/BillsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function getBillRequest($recurring = 0)
{
$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',
Expand Down
5 changes: 5 additions & 0 deletions tests/Feature/Incomes/InvoicesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ private function getInvoiceRequest($recurring = 0)
'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,
Expand Down

0 comments on commit ab8e8de

Please sign in to comment.