1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/tests
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
..
Browser Change companies table property domain to subdomain (#3141) 2019-12-11 07:53:41 +11:00
Feature Migrate commits from 2-migration-with-json into v2 (#3241) 2020-01-24 07:35:00 +11:00
Integration Implement payment rules at application edge (FormRequest) (#3202) 2020-01-10 07:15:10 +11:00
Pdf Tests for PDF generation 2019-05-04 16:55:19 +10:00
Unit Migrate commits from 2-migration-with-json into v2 (#3241) 2020-01-24 07:35:00 +11:00
_bootstrap.php StyleCI fixes (#2416) 2018-10-05 21:40:02 +10:00
CreatesApplication.php Initial commit 2018-10-04 20:10:43 +03:00
DuskTestCase.php Tests, Multi-DB support for incoming URLs (#2466) 2018-10-24 21:24:09 +11:00
MockAccountData.php Implement payment rules at application edge (FormRequest) (#3202) 2020-01-10 07:15:10 +11:00
TestCase.php Initial commit 2018-10-04 20:10:43 +03:00