invoiceninja/tests/Feature
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
..
AccountTest.php Fixes for client currency id (#3092) 2019-11-25 20:38:55 +11:00
ClientApiTest.php Payment refunds, Projects, Expenses and Vendors. (#3228) 2020-01-20 21:10:33 +11:00
ClientModelTest.php Return company user settings as object (#3156) 2019-12-17 21:50:45 +11:00
ClientPresenterTest.php Tests for client presenter using new settings object for company meta data 2019-10-05 11:48:00 +10:00
ClientTest.php Fixes for tests (#3184) 2019-12-31 08:59:12 +11:00
CompanyGatewayApiTest.php Implement fees and limits map for company gateways (#3053) 2019-11-11 23:21:19 +11:00
CompanySettingsTest.php Multi-Master Support for MySQL (#3146) 2019-12-14 16:49:48 +11:00
CompanyTest.php Stub GMail Driver (#3099) 2019-11-27 20:47:59 +11:00
InvitationTest.php Change companies table property domain to subdomain (#3141) 2019-12-11 07:53:41 +11:00
InvoiceEmailTest.php Expense and Vendors (#3226) 2020-01-20 12:31:58 +11:00
InvoiceTest.php Refactor for invoices/quotes/credit transformers (#3100) 2019-11-27 21:27:24 +11:00
LoginTest.php Change companies table property domain to subdomain (#3141) 2019-12-11 07:53:41 +11:00
MigrationTest.php Migrate commits from 2-migration-with-json into v2 (#3241) 2020-01-24 07:35:00 +11:00
PaymentTest.php Payment refunds, Projects, Expenses and Vendors. (#3228) 2020-01-20 21:10:33 +11:00
ProductTest.php Fix invoice payable rules (#3212) 2020-01-15 19:43:40 +10:00
QuoteTest.php Fixes for Storing Quotes (#3159) 2019-12-18 09:40:15 +11:00
RecurringInvoicesCronTest.php Create or Update invitations on invoice save / creation 2019-09-23 13:10:51 +10:00
RecurringInvoiceTest.php Fixes for transforming and saving company settings. (#3058) 2019-11-13 08:26:40 +11:00
RecurringQuoteTest.php Fixes for transforming and saving company settings. (#3058) 2019-11-13 08:26:40 +11:00
TemplateApiTest.php Adjustments for template controller to make entity and entity_id optional (#3108) 2019-11-30 14:11:49 +11:00
UserTest.php Implement payment rules at application edge (FormRequest) (#3202) 2020-01-10 07:15:10 +11:00