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