mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 00:47:02 +00:00
Fixes for tests
This commit is contained in:
@@ -219,6 +219,52 @@ class QuickbooksService
|
||||
return isset($this->settings->{$entity}->direction) && ($this->settings->{$entity}->direction === $direction || $this->settings->{$entity}->direction === \App\Enum\SyncDirection::BIDIRECTIONAL);
|
||||
}
|
||||
|
||||
|
||||
// [
|
||||
// QuickBooksOnline\API\Data\IPPAccount {#7706
|
||||
// +Id: "30",
|
||||
// +SyncToken: "0",
|
||||
// +MetaData: QuickBooksOnline\API\Data\IPPModificationMetaData {#7707
|
||||
// +CreatedByRef: null,
|
||||
// +CreateTime: "2024-05-22T14:46:30-07:00",
|
||||
// +LastModifiedByRef: null,
|
||||
// +LastUpdatedTime: "2024-05-22T14:46:30-07:00",
|
||||
// +LastChangedInQB: null,
|
||||
// +Synchronized: null,
|
||||
// },
|
||||
// +CustomField: null,
|
||||
// +AttachableRef: null,
|
||||
// +domain: null,
|
||||
// +status: null,
|
||||
// +sparse: null,
|
||||
// +Name: "Uncategorized Income",
|
||||
// +SubAccount: "false",
|
||||
// +ParentRef: null,
|
||||
// +Description: null,
|
||||
// +FullyQualifiedName: "Uncategorized Income",
|
||||
// +AccountAlias: null,
|
||||
// +TxnLocationType: null,
|
||||
// +Active: "true",
|
||||
// +Classification: "Revenue",
|
||||
// +AccountType: "Income",
|
||||
// +AccountSubType: "ServiceFeeIncome",
|
||||
// +AccountPurposes: null,
|
||||
// +AcctNum: null,
|
||||
// +AcctNumExtn: null,
|
||||
// +BankNum: null,
|
||||
// +OpeningBalance: null,
|
||||
// +OpeningBalanceDate: null,
|
||||
// +CurrentBalance: "0",
|
||||
// +CurrentBalanceWithSubAccounts: "0",
|
||||
// +CurrencyRef: "USD",
|
||||
// +TaxAccount: null,
|
||||
// +TaxCodeRef: null,
|
||||
// +OnlineBankingEnabled: null,
|
||||
// +FIName: null,
|
||||
// +JournalCodeRef: null,
|
||||
// +AccountEx: null,
|
||||
// },
|
||||
// ]
|
||||
/**
|
||||
* Fetch income accounts from QuickBooks.
|
||||
*
|
||||
@@ -241,6 +287,52 @@ class QuickbooksService
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// [
|
||||
// QuickBooksOnline\API\Data\IPPAccount {#7709
|
||||
// +Id: "57",
|
||||
// +SyncToken: "0",
|
||||
// +MetaData: QuickBooksOnline\API\Data\IPPModificationMetaData {#7698
|
||||
// +CreatedByRef: null,
|
||||
// +CreateTime: "2024-05-27T10:17:24-07:00",
|
||||
// +LastModifiedByRef: null,
|
||||
// +LastUpdatedTime: "2024-05-27T10:17:24-07:00",
|
||||
// +LastChangedInQB: null,
|
||||
// +Synchronized: null,
|
||||
// },
|
||||
// +CustomField: null,
|
||||
// +AttachableRef: null,
|
||||
// +domain: null,
|
||||
// +status: null,
|
||||
// +sparse: null,
|
||||
// +Name: "Workers Compensation",
|
||||
// +SubAccount: "true",
|
||||
// +ParentRef: "11",
|
||||
// +Description: null,
|
||||
// +FullyQualifiedName: "Insurance:Workers Compensation",
|
||||
// +AccountAlias: null,
|
||||
// +TxnLocationType: null,
|
||||
// +Active: "true",
|
||||
// +Classification: "Expense",
|
||||
// +AccountType: "Expense",
|
||||
// +AccountSubType: "Insurance",
|
||||
// +AccountPurposes: null,
|
||||
// +AcctNum: null,
|
||||
// +AcctNumExtn: null,
|
||||
// +BankNum: null,
|
||||
// +OpeningBalance: null,
|
||||
// +OpeningBalanceDate: null,
|
||||
// +CurrentBalance: "0",
|
||||
// +CurrentBalanceWithSubAccounts: "0",
|
||||
// +CurrencyRef: "USD",
|
||||
// +TaxAccount: null,
|
||||
// +TaxCodeRef: null,
|
||||
// +OnlineBankingEnabled: null,
|
||||
// +FIName: null,
|
||||
// +JournalCodeRef: null,
|
||||
// +AccountEx: null,
|
||||
// },
|
||||
// ]
|
||||
/**
|
||||
* Fetch expense accounts from QuickBooks.
|
||||
*
|
||||
|
||||
@@ -71,7 +71,7 @@ class DesignApiTest extends TestCase
|
||||
|
||||
$this->assertEquals($this->user->id, $d->user_id);
|
||||
$this->assertEquals($this->company->id, $d->company_id);
|
||||
$this->assertEquals($design->name.' clone '.date('Y-m-d H:i:s'), $d->name);
|
||||
$this->assertStringContainsString($design->name.' clone ', $d->name);
|
||||
// $dsd = Design::all()->pluck('name')->toArray();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user