Skip to content

Commit

Permalink
Merge pull request #119 from convenient/fix-tests
Browse files Browse the repository at this point in the history
Update test cases
  • Loading branch information
tr33m4n authored Apr 11, 2024
2 parents 544fff0 + f633d30 commit 662b33d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ For a detailed breakdown of each check, an example, and the recommended actions

If you have any improvements please raise a PR or an Issue.

## Supplementary tooling

- Gui https://github.com/elgentos/magento2-upgrade-gui
- Github action https://github.com/convenient/magento2-upgrade-patch-helper-github-action

## How to use

All the below should be used on a local setup, never do any of this anywhere near a production website.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
+-------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| WARN | DB schema added | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | queue_poison_pill |
| WARN | DB schema added | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | sales_order |
| WARN | DB schema added | vendor/paypal/module-braintree-core/etc/db_schema.xml | sales_order |
| WARN | DB schema added | vendor/paypal/module-braintree-core/etc/db_schema.xml | sales_order_grid |
| WARN | DB schema changed | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | customer_entity |
| WARN | DB schema removed | vendor/ampersand/upgrade-patch-helper-test-module-to-be-removed/src/module/etc/db_schema.xml | catalog_category_entity |
| WARN | DB schema removed | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | wishlist |
| WARN | DB schema target changed | vendor/magento/module-customer/etc/db_schema.xml | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml (customer_entity) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml (sales_order) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/paypal/module-braintree-core/etc/db_schema.xml (sales_order) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/paypal/module-braintree-core/etc/db_schema.xml (sales_order_grid) |
| WARN | DB schema target changed | vendor/magento/module-wishlist/etc/db_schema.xml | app/code/Ampersand/Test/etc/db_schema.xml (wishlist_item) |
| WARN | Override (phtml/js/html) | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/Magento_Customer/templates/account/dashboard/info.phtml | app/design/frontend/Ampersand/theme/Magento_Customer/templates/account/dashboard/info.phtml |
| WARN | Override (phtml/js/html) | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/Magento_Customer/templates/account/dashboard/info.phtml | vendor/ampersand/upgrade-patch-helper-test-hyva-theme-extended/theme/Magento_Customer/templates/account/dashboard/info.phtml |
Expand Down Expand Up @@ -63,7 +67,7 @@
| WARN | Redundant Override | vendor/magento/theme-frontend-blank/etc/view.xml | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/etc/view.xml |
| WARN | Redundant Override | vendor/paypal/module-braintree-core/view/base/web/js/form-builder.js | vendor/paypal/module-braintree-core/view/frontend/web/js/form-builder.js |
+-------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
WARN count: 61
WARN count: 65
INFO count: 395 (to view re-run this tool with --show-info)
IGNORE count: 7 (to view re-run this tool with --show-ignore)
For docs on each check see https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper/blob/master/docs/CHECKS_AVAILABLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
+-------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| WARN | DB schema added | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | queue_poison_pill |
| WARN | DB schema added | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | sales_order |
| WARN | DB schema added | vendor/paypal/module-braintree-core/etc/db_schema.xml | sales_order |
| WARN | DB schema added | vendor/paypal/module-braintree-core/etc/db_schema.xml | sales_order_grid |
| WARN | DB schema changed | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | customer_entity |
| WARN | DB schema removed | vendor/ampersand/upgrade-patch-helper-test-module-to-be-removed/src/module/etc/db_schema.xml | catalog_category_entity |
| WARN | DB schema removed | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | wishlist |
| WARN | DB schema target changed | vendor/magento/module-customer/etc/db_schema.xml | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml (customer_entity) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml (sales_order) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/paypal/module-braintree-core/etc/db_schema.xml (sales_order) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/paypal/module-braintree-core/etc/db_schema.xml (sales_order_grid) |
| WARN | DB schema target changed | vendor/magento/module-wishlist/etc/db_schema.xml | app/code/Ampersand/Test/etc/db_schema.xml (wishlist_item) |
| WARN | Override (phtml/js/html) | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/Magento_Customer/templates/account/dashboard/info.phtml | app/design/frontend/Ampersand/theme/Magento_Customer/templates/account/dashboard/info.phtml |
| WARN | Override (phtml/js/html) | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/Magento_Customer/templates/account/dashboard/info.phtml | vendor/ampersand/upgrade-patch-helper-test-hyva-theme-extended/theme/Magento_Customer/templates/account/dashboard/info.phtml |
Expand Down Expand Up @@ -465,7 +469,7 @@
| IGNR | Override (phtml/js/html) | vendor/magento/module-vault/view/frontend/web/js/view/payment/method-renderer/vault.js | app/design/frontend/Ampersand/theme/Magento_Vault/web/js/view/payment/method-renderer/vault.js |
| IGNR | Preference | vendor/ampersand/upgrade-patch-helper-test-module/src/module/Model/ToPreferenceAndIgnore.php | Ampersand\Test\Model\ToPreferenceAndIgnore |
+-------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
WARN count: 61
WARN count: 65
INFO count: 395
IGNORE count: 7
For docs on each check see https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper/blob/master/docs/CHECKS_AVAILABLE.md
6 changes: 5 additions & 1 deletion dev/phpunit/functional/expected_output/magentom24.out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
+-------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| WARN | DB schema added | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | queue_poison_pill |
| WARN | DB schema added | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | sales_order |
| WARN | DB schema added | vendor/paypal/module-braintree-core/etc/db_schema.xml | sales_order |
| WARN | DB schema added | vendor/paypal/module-braintree-core/etc/db_schema.xml | sales_order_grid |
| WARN | DB schema changed | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | customer_entity |
| WARN | DB schema removed | vendor/ampersand/upgrade-patch-helper-test-module-to-be-removed/src/module/etc/db_schema.xml | catalog_category_entity |
| WARN | DB schema removed | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml | wishlist |
| WARN | DB schema target changed | vendor/magento/module-customer/etc/db_schema.xml | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml (customer_entity) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/ampersand/upgrade-patch-helper-test-module/src/module/etc/db_schema.xml (sales_order) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/paypal/module-braintree-core/etc/db_schema.xml (sales_order) |
| WARN | DB schema target changed | vendor/magento/module-sales/etc/db_schema.xml | vendor/paypal/module-braintree-core/etc/db_schema.xml (sales_order_grid) |
| WARN | DB schema target changed | vendor/magento/module-wishlist/etc/db_schema.xml | app/code/Ampersand/Test/etc/db_schema.xml (wishlist_item) |
| WARN | Override (phtml/js/html) | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/Magento_Customer/templates/account/dashboard/info.phtml | app/design/frontend/Ampersand/theme/Magento_Customer/templates/account/dashboard/info.phtml |
| WARN | Override (phtml/js/html) | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/Magento_Customer/templates/account/dashboard/info.phtml | vendor/ampersand/upgrade-patch-helper-test-hyva-theme-extended/theme/Magento_Customer/templates/account/dashboard/info.phtml |
Expand Down Expand Up @@ -61,7 +65,7 @@
| WARN | Redundant Override | vendor/magento/theme-frontend-blank/etc/view.xml | vendor/ampersand/upgrade-patch-helper-test-hyva-fallback-theme/theme/etc/view.xml |
| WARN | Redundant Override | vendor/paypal/module-braintree-core/view/base/web/js/form-builder.js | vendor/paypal/module-braintree-core/view/frontend/web/js/form-builder.js |
+-------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
WARN count: 59
WARN count: 63
INFO count: 395 (to view re-run this tool with --show-info)
IGNORE count: 7 (to view re-run this tool with --show-ignore)
For docs on each check see https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper/blob/master/docs/CHECKS_AVAILABLE.md
Loading

0 comments on commit 662b33d

Please sign in to comment.