mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
c9db1688fd
commit
b1f1eb0ccd
@ -98,9 +98,10 @@ class UpdateCompanyRequest extends Request
|
|||||||
$input['portal_domain'] = rtrim(strtolower($input['portal_domain']), "/");
|
$input['portal_domain'] = rtrim(strtolower($input['portal_domain']), "/");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($input['expense_mailbox']) && Ninja::isHosted() && !($this->company->account->isPaid() && $this->company->account->plan == 'enterprise')) {
|
// /** Disabled on the hosted platform */
|
||||||
unset($input['expense_mailbox']);
|
// if (isset($input['expense_mailbox']) && Ninja::isHosted() && !($this->company->account->isPaid() && $this->company->account->plan == 'enterprise')) {
|
||||||
}
|
// unset($input['expense_mailbox']);
|
||||||
|
// }
|
||||||
|
|
||||||
if (isset($input['settings'])) {
|
if (isset($input['settings'])) {
|
||||||
$input['settings'] = (array) $this->filterSaveableSettings($input['settings']);
|
$input['settings'] = (array) $this->filterSaveableSettings($input['settings']);
|
||||||
|
@ -262,7 +262,7 @@ class CompanyTest extends TestCase
|
|||||||
|
|
||||||
public function tearDown(): void
|
public function tearDown(): void
|
||||||
{
|
{
|
||||||
Account::query()->where('id', $this->company->account->id)->delete();
|
Account::query()->where('id', $this->company->account_id)->delete();
|
||||||
|
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user