Merge pull request #536 from batuhawk/1.3-dev

Payment test modify
This commit is contained in:
Denis Duliçi 2018-10-09 16:15:35 +03:00 committed by GitHub
commit 46af851e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,13 +70,13 @@ class PaymentsTest extends FeatureTestCase
return [ return [
'company_id' => $this->company->id, 'company_id' => $this->company->id,
'account_id' => setting('general.default_account'), 'account_id' => setting('general.default_account'),
'vendor_id' => '',
'paid_at' => $this->faker->date(), 'paid_at' => $this->faker->date(),
'amount' => $this->faker->randomFloat(2, 2), 'amount' => $this->faker->randomFloat(2, 2),
'currency_code' => setting('general.default_currency'), 'currency_code' => setting('general.default_currency'),
'currency_rate' => '1', 'currency_rate' => '1',
'vendor_id' => setting('general.default_vendor'),
'description' => $this->faker->text(5), 'description' => $this->faker->text(5),
'category_id' => $this->company->categories()->type('income')->first()->id, 'category_id' => $this->company->categories()->type('expense')->first()->id,
'payment_method' => setting('general.default_payment_method'), 'payment_method' => setting('general.default_payment_method'),
'reference' => $this->faker->text(5), 'reference' => $this->faker->text(5),
'attachment' => $attachment, 'attachment' => $attachment,