Reviewed all tests for Travis

This commit is contained in:
Batuhan Baş
2019-04-02 18:51:06 +03:00
parent e6560f88a6
commit 9e0cdec575
22 changed files with 39 additions and 45 deletions

View File

@ -73,18 +73,17 @@ class AccountsTest extends FeatureTestCase
private function getAccountRequest()
{
return[
'company_id' => $this->company->id,
'name' => $this->faker->text(5),
'number' => '1',
'currency_code' => setting('general.default_currency'),
'opening_balance' => 0,
'bank_name' => $this->faker->text(5),
'bank_phone' => null,
'bank_address' => null,
'default_account' => $this->faker->randomElement(['yes', 'no']),
'enabled' => $this->faker->boolean ? 1 : 0,
return [
'company_id' => $this->company->id,
'name' => $this->faker->text(5),
'number' => '1',
'currency_code' => setting('general.default_currency'),
'opening_balance' => 0,
'bank_name' => $this->faker->text(5),
'bank_phone' => null,
'bank_address' => null,
'default_account' => $this->faker->randomElement(['yes', 'no']),
'enabled' => $this->faker->boolean ? 1 : 0,
];
}
}