Some request values fixed
This commit is contained in:
parent
9709899941
commit
ab8e8de064
@ -87,7 +87,7 @@ class BillsTest extends FeatureTestCase
|
|||||||
{
|
{
|
||||||
$amount = $this->faker->randomFloat(2, 2);
|
$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 = [
|
$data = [
|
||||||
'vendor_id' => '0',
|
'vendor_id' => '0',
|
||||||
|
@ -84,6 +84,11 @@ class InvoicesTest extends FeatureTestCase
|
|||||||
'due_at' => $this->faker->date(),
|
'due_at' => $this->faker->date(),
|
||||||
'invoice_number' => $this->faker->lexify('INV ???'),
|
'invoice_number' => $this->faker->lexify('INV ???'),
|
||||||
'order_number' => $this->faker->randomDigit,
|
'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',
|
'discount' => '0',
|
||||||
'notes' => $this->faker->text(5),
|
'notes' => $this->faker->text(5),
|
||||||
'category_id' => $this->company->categories()->type('income')->first()->id,
|
'category_id' => $this->company->categories()->type('income')->first()->id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user