invoiceninja/tests/Unit
Benjamin Beganović 11cc40d23a Migrate commits from 2-migration-with-json into v2 (#3241)
* Scaffold test case

* Import.php tests:
- Basic test scaffold
- Test if exception is thrown when unknown resource
- Company update test

* Migration importer & exception classes

* Company migration test
- Added 3rd parameter for accepting custom resources
- Wip tax_rates migration

* Tax rate migration

* Tax rate update
- Added company_id & user_id property modifiers

* Users migration

* Save IDs for users importing

* Add 'transformIds' method

* Importing clients
- An exception for resource not migration
- Dependency logic
- Removing id on insert

* Exception for unresolved dependency

* Import clients

* Method for inspecting user_id

* Importing invoices

* Importing quotes

* Fix tests & wrap with try-catch

* Fix tax_rates user_id transform

* Working on migration

* Tests for migration

* fixes for test

* Tests for Import.php
- Added ext-json to composer.json

* Tests for Import.php
- Added ext-json to composer.json

* Change migration exceptions to MigrationValidatorFailed

* Fixes for tests and counters

* Unzipping the migration archive
- Changed .gitignore to ignore all local migrations

* Comparing local data with inserted

* Ignore verification - wip

* Fix formatting for api.php

* Uploading file test (wip)

* Fix typo

Co-authored-by: David Bomba <turbo124@gmail.com>
2020-01-24 07:35:00 +11:00
..
Migration Migrate commits from 2-migration-with-json into v2 (#3241) 2020-01-24 07:35:00 +11:00
BaseSettingsTest.php Refactor for settings to force types 2019-09-19 15:50:05 +10:00
CollectionMergingTest.php Fixes for tests 2019-09-11 12:01:49 +10:00
CompanySettingsTest.php Multi-Master Support for MySQL (#3146) 2019-12-14 16:49:48 +11:00
CompareCollectionTest.php Refactors, and create a number helper 2019-08-28 12:36:53 +10:00
CompareObjectTest.php Multi-Master Support for MySQL (#3146) 2019-12-14 16:49:48 +11:00
EncryptionSettingsTest.php Working on preauth credit card stripe 2019-09-16 12:05:30 +10:00
EvaluateStringTest.php Improve code coverage 2019-04-20 09:02:49 +10:00
FactoryCreationTest.php Fixes for tests (#3082) 2019-11-20 16:41:49 +11:00
GeneratesCounterTest.php Fixes for missing company object in job classes. (#3179) 2019-12-29 17:28:57 +11:00
GroupSettingsTest.php Fixes for client currency id (#3092) 2019-11-25 20:38:55 +11:00
GroupTest.php Refactor for settings to force types 2019-09-19 15:50:05 +10:00
InvoiceInclusiveTest.php Remove settings from invoice table (#3051) 2019-11-10 23:06:30 +11:00
InvoiceItemInclusiveTest.php Remove settings from invoice table (#3051) 2019-11-10 23:06:30 +11:00
InvoiceItemTest.php Improve invoice calculations (#3007) 2019-10-22 13:07:00 +11:00
InvoiceItemV2Test.php Exclusive tax rate calculations (#3005) 2019-10-20 17:23:35 +11:00
InvoiceTest.php Remove settings from invoice table (#3051) 2019-11-10 23:06:30 +11:00
MakesDatesTest.php Fixes for test 2019-08-28 10:58:13 +10:00
MakesInvoiceValuesTest.php Working on invoice item tax calculations 2019-09-04 15:15:42 +10:00
NestedCollectionTest.php Refactors, and create a number helper 2019-08-28 12:36:53 +10:00
NumberTest.php Refactors, and create a number helper 2019-08-28 12:36:53 +10:00
PrimaryKeyTransformationTest.php fixes for travis 2019-09-11 16:54:14 +10:00
SystemHealthTest.php fixes for tests 2019-07-08 16:06:41 +10:00