1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Merge pull request #8823 from turbo124/v5-develop

Fixes for tests
This commit is contained in:
David Bomba 2023-09-21 15:03:28 +10:00 committed by GitHub
commit 3b2574eeaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -38,10 +38,10 @@ class UpdateTaxRateRequest extends Request
$rules = [];
$rules['rate'] = 'required|numeric';
$rules['rate'] = 'sometimes|numeric';
if ($this->name) {
$rules['name'] = Rule::unique('tax_rates')->where('company_id', auth()->user()->company()->id)->ignore($this->tax_rate->id);
$rules['name'] = Rule::unique('tax_rates')->where('company_id', $user->company()->id)->ignore($this->tax_rate->id);
}
return $rules;

View File

@ -29,6 +29,8 @@ class TaxRateApiTest extends TestCase
use DatabaseTransactions;
use MockAccountData;
public $faker;
protected function setUp() :void
{
parent::setUp();