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,
];
}
}

View File

@ -1,6 +1,7 @@
<?php
namespace Tests\Feature\Banking;
use App\Models\Banking\Reconciliation;
use Tests\Feature\FeatureTestCase;
@ -85,4 +86,4 @@ class ReconciliationsTest extends FeatureTestCase
'reconciled' => '1',
];
}
}
}

View File

@ -120,7 +120,7 @@ class TransfersTest extends FeatureTestCase
'payment_method' => 'offlinepayment.cash.1',
'reference' => null,
'currency_code' => setting('general.default_currency'),
'currency_rate' => '1',
'currency_rate' => '1'
];
}
@ -140,7 +140,7 @@ class TransfersTest extends FeatureTestCase
'category_id' => $this->company->categories()->type('income')->first()->id,
'reference' => $this->faker->text(5),
'payment_method' => setting('general.default_payment_method'),
'attachment' => $attachment,
'attachment' => $attachment
];
}
@ -160,7 +160,7 @@ class TransfersTest extends FeatureTestCase
'category_id' => $this->company->categories()->type('expense')->first()->id,
'payment_method' => setting('general.default_payment_method'),
'reference' => $this->faker->text(5),
'attachment' => $attachment,
'attachment' => $attachment
];
}
}
}