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']), "/");
|
||||
}
|
||||
|
||||
if (isset($input['expense_mailbox']) && Ninja::isHosted() && !($this->company->account->isPaid() && $this->company->account->plan == 'enterprise')) {
|
||||
unset($input['expense_mailbox']);
|
||||
}
|
||||
// /** Disabled on the hosted platform */
|
||||
// if (isset($input['expense_mailbox']) && Ninja::isHosted() && !($this->company->account->isPaid() && $this->company->account->plan == 'enterprise')) {
|
||||
// unset($input['expense_mailbox']);
|
||||
// }
|
||||
|
||||
if (isset($input['settings'])) {
|
||||
$input['settings'] = (array) $this->filterSaveableSettings($input['settings']);
|
||||
|
@ -262,7 +262,7 @@ class CompanyTest extends TestCase
|
||||
|
||||
public function tearDown(): void
|
||||
{
|
||||
Account::query()->where('id', $this->company->account->id)->delete();
|
||||
Account::query()->where('id', $this->company->account_id)->delete();
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user