1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
use PHPUnit\Framework\TestCase; |
4
|
|
|
use Picqer\Financials\Exact\Connection; |
5
|
|
|
|
6
|
|
|
/** |
7
|
|
|
* Class EntityTest. |
8
|
|
|
* |
9
|
|
|
* Tests all entities to ensure entities have no PHP parse errors and have |
10
|
|
|
* at least the properties we need to use the entity |
11
|
|
|
*/ |
12
|
|
|
class EntityTest extends TestCase |
13
|
|
|
{ |
14
|
|
|
public function testAccountEntity() |
15
|
|
|
{ |
16
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Account::class); |
17
|
|
|
} |
18
|
|
|
|
19
|
|
|
public function testAccountClassificationEntity() |
20
|
|
|
{ |
21
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\AccountClassification::class); |
22
|
|
|
} |
23
|
|
|
|
24
|
|
|
public function testAccountInvolvedAccountEntity() |
25
|
|
|
{ |
26
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\AccountInvolvedAccount::class); |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
public function testAccountItemEntity() |
30
|
|
|
{ |
31
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\AccountItem::class); |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
public function testAddressEntity() |
35
|
|
|
{ |
36
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Address::class); |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
public function testBankAccountEntity() |
40
|
|
|
{ |
41
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\BankAccount::class); |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
public function testBankEntity() |
45
|
|
|
{ |
46
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Bank::class); |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
public function testBankEntryEntity() |
50
|
|
|
{ |
51
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\BankEntry::class); |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
public function testBankEntryLineEntity() |
55
|
|
|
{ |
56
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\BankEntryLine::class); |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
public function testBudgetEntity() |
60
|
|
|
{ |
61
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Budget::class); |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
public function testCashEntryEntity() |
65
|
|
|
{ |
66
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\CashEntry::class); |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function testCashEntryLineEntity() |
70
|
|
|
{ |
71
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\CashEntryLine::class); |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function testContactEntity() |
75
|
|
|
{ |
76
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Contact::class); |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function testCostcenterEntity() |
80
|
|
|
{ |
81
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Costcenter::class); |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function testCostunitEntity() |
85
|
|
|
{ |
86
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Costunit::class); |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function testDirectDebitMandateEntity() |
90
|
|
|
{ |
91
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\DirectDebitMandate::class); |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function testDivisionEntity() |
95
|
|
|
{ |
96
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Division::class); |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
public function testSystemDivisionEntity() |
100
|
|
|
{ |
101
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SystemDivision::class); |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
public function testDocumentEntity() |
105
|
|
|
{ |
106
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Document::class); |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
public function testDocumentAttachmentEntity() |
110
|
|
|
{ |
111
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\DocumentAttachment::class); |
112
|
|
|
$documentAttachment = new \Picqer\Financials\Exact\DocumentAttachment(new Connection()); |
113
|
|
|
$documentAttachment->Url = 'http://www.example.org/index.html?id=123'; |
114
|
|
|
|
115
|
|
|
$this->assertSame('http://www.example.org/index.html?id=123&Download=1', $documentAttachment->getDownloadUrl()); |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
public function testDocumentCategoryEntity() |
119
|
|
|
{ |
120
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\DocumentCategory::class); |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
public function testDocumentTypeEntity() |
124
|
|
|
{ |
125
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\DocumentType::class); |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
public function testEmployeeEntity() |
129
|
|
|
{ |
130
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Employee::class); |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
public function testExchangeRateEntity() |
134
|
|
|
{ |
135
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ExchangeRate::class); |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
public function testGeneralJournalEntity() |
139
|
|
|
{ |
140
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\GeneralJournalEntry::class); |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
public function testGeneralJournalEntryLineEntity() |
144
|
|
|
{ |
145
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\GeneralJournalEntryLine::class); |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
public function testGLAccountEntity() |
149
|
|
|
{ |
150
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\GLAccount::class); |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
public function testGLTransactionTypeEntity() |
154
|
|
|
{ |
155
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\GLTransactionType::class); |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
public function testInvoiceSalesOrdersEntity() |
159
|
|
|
{ |
160
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\InvoiceSalesOrder::class); |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
public function testItemEntity() |
164
|
|
|
{ |
165
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Item::class); |
166
|
|
|
$item = new \Picqer\Financials\Exact\Item(new Connection()); |
167
|
|
|
$item->PictureUrl = 'http://www.example.org/index.html?id=123'; |
168
|
|
|
|
169
|
|
|
$this->assertSame('http://www.example.org/index.html?id=123', $item->getDownloadUrl()); |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
public function testItemExtraField() |
173
|
|
|
{ |
174
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ItemExtraField::class); |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
public function testItemGroupEntity() |
178
|
|
|
{ |
179
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ItemGroup::class); |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
public function testItemWarehouseEntity() |
183
|
|
|
{ |
184
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ItemWarehouse::class); |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
public function testJournalEntity() |
188
|
|
|
{ |
189
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Journal::class); |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
public function testLayoutEntity() |
193
|
|
|
{ |
194
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Layout::class); |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
public function testMailMessageEntity() |
198
|
|
|
{ |
199
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\MailMessage::class); |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
public function testMailMessageAttachmentEntity() |
203
|
|
|
{ |
204
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\MailMessageAttachment::class); |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
public function testMeEntity() |
208
|
|
|
{ |
209
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Me::class); |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
public function testOutstandingInvoicesOverviewEntity() |
213
|
|
|
{ |
214
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\OutstandingInvoicesOverview::class); |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
public function testPayablesListEntity() |
218
|
|
|
{ |
219
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\PayablesList::class); |
220
|
|
|
} |
221
|
|
|
|
222
|
|
|
public function testPaymentConditionEntity() |
223
|
|
|
{ |
224
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\PaymentCondition::class); |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
public function testPrintedSalesInvoiceEntity() |
228
|
|
|
{ |
229
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\PrintedSalesInvoice::class); |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
public function testProfitLossOverviewEntity() |
233
|
|
|
{ |
234
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProfitLossOverview::class); |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
public function testPurchaseEntryEntity() |
238
|
|
|
{ |
239
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\PurchaseEntry::class); |
240
|
|
|
} |
241
|
|
|
|
242
|
|
|
public function testPurchaseEntryLineEntity() |
243
|
|
|
{ |
244
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\PurchaseEntryLine::class); |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
public function testPurchaseOrderEntity() |
248
|
|
|
{ |
249
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\PurchaseOrder::class); |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
public function testPurchaseOrderLineEntity() |
253
|
|
|
{ |
254
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\PurchaseOrderLine::class); |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
public function testRevenueListEntity() |
258
|
|
|
{ |
259
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\RevenueList::class); |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
public function testQuotationEntity() |
263
|
|
|
{ |
264
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Quotation::class); |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
public function testQuotationLineEntity() |
268
|
|
|
{ |
269
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\QuotationLine::class); |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
public function testReceivableListEntity() |
273
|
|
|
{ |
274
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ReceivableList::class); |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
public function testReportingBalanceEntity() |
278
|
|
|
{ |
279
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ReportingBalance::class); |
280
|
|
|
} |
281
|
|
|
|
282
|
|
|
public function testSalesEntryEntity() |
283
|
|
|
{ |
284
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesEntry::class); |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
public function testSalesEntryLineEntity() |
288
|
|
|
{ |
289
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesEntryLine::class); |
290
|
|
|
} |
291
|
|
|
|
292
|
|
|
public function testSalesInvoiceEntity() |
293
|
|
|
{ |
294
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesInvoice::class); |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
public function testSalesInvoiceLineEntity() |
298
|
|
|
{ |
299
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesInvoiceLine::class); |
300
|
|
|
} |
301
|
|
|
|
302
|
|
|
public function testSalesItemPriceEntity() |
303
|
|
|
{ |
304
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesItemPrice::class); |
305
|
|
|
} |
306
|
|
|
|
307
|
|
|
public function testSalesOrderEntity() |
308
|
|
|
{ |
309
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesOrder::class); |
310
|
|
|
} |
311
|
|
|
|
312
|
|
|
public function testSalesOrderLineEntity() |
313
|
|
|
{ |
314
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesOrderLine::class); |
315
|
|
|
} |
316
|
|
|
|
317
|
|
|
public function testStockPositionEntity() |
318
|
|
|
{ |
319
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\StockPosition::class); |
320
|
|
|
} |
321
|
|
|
|
322
|
|
|
public function testSubscriptionEntity() |
323
|
|
|
{ |
324
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Subscription::class); |
325
|
|
|
} |
326
|
|
|
|
327
|
|
|
public function testSubscriptionLineEntity() |
328
|
|
|
{ |
329
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SubscriptionLine::class); |
330
|
|
|
} |
331
|
|
|
|
332
|
|
|
public function testSubscriptionTypeEntity() |
333
|
|
|
{ |
334
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SubscriptionType::class); |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
public function testTransactionEntity() |
338
|
|
|
{ |
339
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Transaction::class); |
340
|
|
|
} |
341
|
|
|
|
342
|
|
|
public function testTransactionLineEntity() |
343
|
|
|
{ |
344
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\TransactionLine::class); |
345
|
|
|
} |
346
|
|
|
|
347
|
|
|
public function testUnitsEntity() |
348
|
|
|
{ |
349
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Units::class); |
350
|
|
|
} |
351
|
|
|
|
352
|
|
|
public function testVatcodeEntity() |
353
|
|
|
{ |
354
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\VatCode::class); |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
public function testWebhookSubscriptionEntity() |
358
|
|
|
{ |
359
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\WebhookSubscription::class); |
360
|
|
|
} |
361
|
|
|
|
362
|
|
|
public function testStockCountEntity() |
363
|
|
|
{ |
364
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\StockCount::class); |
365
|
|
|
} |
366
|
|
|
|
367
|
|
|
public function testStockCountLineEntity() |
368
|
|
|
{ |
369
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\StockCountLine::class); |
370
|
|
|
} |
371
|
|
|
|
372
|
|
|
public function testWarehouseEntity() |
373
|
|
|
{ |
374
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Warehouse::class); |
375
|
|
|
} |
376
|
|
|
|
377
|
|
|
public function testStorageLocationEntity() |
378
|
|
|
{ |
379
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\StorageLocation::class); |
380
|
|
|
} |
381
|
|
|
|
382
|
|
|
public function testGoodsDeliveryEntity() |
383
|
|
|
{ |
384
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\GoodsDelivery::class); |
385
|
|
|
} |
386
|
|
|
|
387
|
|
|
public function testGoodsDeliveryLineEntity() |
388
|
|
|
{ |
389
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\GoodsDeliveryLine::class); |
390
|
|
|
} |
391
|
|
|
|
392
|
|
|
public function testSalesOrderIDEntity() |
393
|
|
|
{ |
394
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesOrderID::class); |
395
|
|
|
} |
396
|
|
|
|
397
|
|
|
public function testItemWarehousePlanningDetails() |
398
|
|
|
{ |
399
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ItemWarehousePlanningDetails::class); |
400
|
|
|
} |
401
|
|
|
|
402
|
|
|
public function testSalesShippingMethods() |
403
|
|
|
{ |
404
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\SalesShippingMethods::class); |
405
|
|
|
} |
406
|
|
|
|
407
|
|
|
public function testInvoiceTerm() |
408
|
|
|
{ |
409
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\InvoiceTerm::class); |
410
|
|
|
} |
411
|
|
|
|
412
|
|
|
public function testBillOfMaterialVersion() |
413
|
|
|
{ |
414
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\BillOfMaterialVersion::class); |
415
|
|
|
} |
416
|
|
|
|
417
|
|
|
public function testBillOfMaterialMaterial() |
418
|
|
|
{ |
419
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\BillOfMaterialMaterial::class); |
420
|
|
|
} |
421
|
|
|
|
422
|
|
|
public function testProject() |
423
|
|
|
{ |
424
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Project::class); |
425
|
|
|
} |
426
|
|
|
|
427
|
|
|
public function testProjectWBSByProject() |
428
|
|
|
{ |
429
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProjectWBSByProject::class); |
430
|
|
|
} |
431
|
|
|
|
432
|
|
|
public function testShopOrder() |
433
|
|
|
{ |
434
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ShopOrder::class); |
435
|
|
|
} |
436
|
|
|
|
437
|
|
|
public function testTimeTransactionEntity() |
438
|
|
|
{ |
439
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\TimeTransaction::class); |
440
|
|
|
} |
441
|
|
|
|
442
|
|
|
public function testUser() |
443
|
|
|
{ |
444
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\User::class); |
445
|
|
|
} |
446
|
|
|
|
447
|
|
|
public function testShopOrderMaterialPlan() |
448
|
|
|
{ |
449
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ShopOrderMaterialPlan::class); |
450
|
|
|
} |
451
|
|
|
|
452
|
|
|
public function testShopOrderRoutingStepPlan() |
453
|
|
|
{ |
454
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ShopOrderRoutingStepPlan::class); |
455
|
|
|
} |
456
|
|
|
|
457
|
|
|
public function testOperation() |
458
|
|
|
{ |
459
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Operation::class); |
460
|
|
|
} |
461
|
|
|
|
462
|
|
|
public function testOperationResource() |
463
|
|
|
{ |
464
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\OperationResource::class); |
465
|
|
|
} |
466
|
|
|
|
467
|
|
|
public function testAbsenceRegistration() |
468
|
|
|
{ |
469
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\AbsenceRegistration::class); |
470
|
|
|
} |
471
|
|
|
|
472
|
|
|
public function testAbsenceRegistrationTransaction() |
473
|
|
|
{ |
474
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\AbsenceRegistrationTransaction::class); |
475
|
|
|
} |
476
|
|
|
|
477
|
|
|
public function testDepartment() |
478
|
|
|
{ |
479
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Department::class); |
480
|
|
|
} |
481
|
|
|
|
482
|
|
|
public function testDivisionClass() |
483
|
|
|
{ |
484
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\DivisionClass::class); |
485
|
|
|
} |
486
|
|
|
|
487
|
|
|
public function testDivisionClassName() |
488
|
|
|
{ |
489
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\DivisionClassName::class); |
490
|
|
|
} |
491
|
|
|
|
492
|
|
|
public function testDivisionClassValue() |
493
|
|
|
{ |
494
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\DivisionClassValue::class); |
495
|
|
|
} |
496
|
|
|
|
497
|
|
|
public function testJobGroup() |
498
|
|
|
{ |
499
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\JobGroup::class); |
500
|
|
|
} |
501
|
|
|
|
502
|
|
|
public function testJobTitle() |
503
|
|
|
{ |
504
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\JobTitle::class); |
505
|
|
|
} |
506
|
|
|
|
507
|
|
|
public function testLeaveBuildUpRegistration() |
508
|
|
|
{ |
509
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\LeaveBuildUpRegistration::class); |
510
|
|
|
} |
511
|
|
|
|
512
|
|
|
public function testLeaveRegistration() |
513
|
|
|
{ |
514
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\LeaveRegistration::class); |
515
|
|
|
} |
516
|
|
|
|
517
|
|
|
public function testSchedule() |
518
|
|
|
{ |
519
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Schedule::class); |
520
|
|
|
} |
521
|
|
|
|
522
|
|
|
public function testStockBatchNumber() |
523
|
|
|
{ |
524
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\StockBatchNumber::class); |
525
|
|
|
} |
526
|
|
|
|
527
|
|
|
public function testStockSerialNumber() |
528
|
|
|
{ |
529
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\StockSerialNumber::class); |
530
|
|
|
} |
531
|
|
|
|
532
|
|
|
public function testWarehouseTransferLine() |
533
|
|
|
{ |
534
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\WarehouseTransferLine::class); |
535
|
|
|
} |
536
|
|
|
|
537
|
|
|
public function testWarehouseTransfer() |
538
|
|
|
{ |
539
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\WarehouseTransfer::class); |
540
|
|
|
} |
541
|
|
|
|
542
|
|
|
public function testProductionArea() |
543
|
|
|
{ |
544
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProductionArea::class); |
545
|
|
|
} |
546
|
|
|
|
547
|
|
|
public function testTimedTimeTransaction() |
548
|
|
|
{ |
549
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\TimedTimeTransaction::class); |
550
|
|
|
} |
551
|
|
|
|
552
|
|
|
public function testWorkcenter() |
553
|
|
|
{ |
554
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Workcenter::class); |
555
|
|
|
} |
556
|
|
|
|
557
|
|
|
public function testCostTransaction() |
558
|
|
|
{ |
559
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\CostTransaction::class); |
560
|
|
|
} |
561
|
|
|
|
562
|
|
|
public function testProjectHourBudget() |
563
|
|
|
{ |
564
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProjectHourBudget::class); |
565
|
|
|
} |
566
|
|
|
|
567
|
|
|
public function testProjectPlanning() |
568
|
|
|
{ |
569
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProjectPlanning::class); |
570
|
|
|
} |
571
|
|
|
|
572
|
|
|
public function testProjectPlanningRecurring() |
573
|
|
|
{ |
574
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProjectPlanningRecurring::class); |
575
|
|
|
} |
576
|
|
|
|
577
|
|
|
public function testProjectRestrictionEmployee() |
578
|
|
|
{ |
579
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProjectRestrictionEmployee::class); |
580
|
|
|
} |
581
|
|
|
|
582
|
|
|
public function testProjectRestrictionItem() |
583
|
|
|
{ |
584
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProjectRestrictionItem::class); |
585
|
|
|
} |
586
|
|
|
|
587
|
|
|
public function testProjectRestrictionRebilling() |
588
|
|
|
{ |
589
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ProjectRestrictionRebilling::class); |
590
|
|
|
} |
591
|
|
|
|
592
|
|
|
public function testRecentCost() |
593
|
|
|
{ |
594
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\RecentCost::class); |
595
|
|
|
} |
596
|
|
|
|
597
|
|
|
public function testRecentHour() |
598
|
|
|
{ |
599
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\RecentHour::class); |
600
|
|
|
} |
601
|
|
|
|
602
|
|
|
public function testTimeCorrection() |
603
|
|
|
{ |
604
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\TimeCorrection::class); |
605
|
|
|
} |
606
|
|
|
|
607
|
|
|
public function testEmployment() |
608
|
|
|
{ |
609
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\Employment::class); |
610
|
|
|
} |
611
|
|
|
|
612
|
|
|
public function testEmploymentContract() |
613
|
|
|
{ |
614
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\EmploymentContract::class); |
615
|
|
|
} |
616
|
|
|
|
617
|
|
|
public function testActiveEmployment() |
618
|
|
|
{ |
619
|
|
|
$this->performEntityTest(\Picqer\Financials\Exact\ActiveEmployment::class); |
620
|
|
|
} |
621
|
|
|
|
622
|
|
|
protected function performEntityTest($entityName) |
623
|
|
|
{ |
624
|
|
|
$reflectionClass = new ReflectionClass($entityName); |
625
|
|
|
|
626
|
|
|
$this->assertTrue($reflectionClass->isInstantiable()); |
627
|
|
|
$this->assertTrue($reflectionClass->hasProperty('fillable')); |
628
|
|
|
$this->assertTrue($reflectionClass->hasProperty('url')); |
629
|
|
|
$this->assertEquals('Picqer\Financials\Exact', $reflectionClass->getNamespaceName()); |
630
|
|
|
$this->assertEquals('Picqer\Financials\Exact\Model', $reflectionClass->getParentClass()->getName()); |
631
|
|
|
} |
632
|
|
|
} |
633
|
|
|
|