Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Checkout
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
21 Apr 2016 at 16:46 UTC
Updated:
25 Aug 2016 at 16:54 UTC
Jump to comment: Most recent
The easy part looks the same as CurrencyTest: create, edit, delete a checkout flow (commerce/modules/price/src/Tests/CurrencyTest.php).
The less easy part is testing the checkout pane drag&drop form that's shown on the checkout flow edit form.
We'll probably want to see how core does it for Manage form / manage display (core/modules/field_ui/src/Tests/ManageDisplayTest.php,ManageFieldsTest.php).
Comments
Comment #2
nickdickinsonwildeComment #3
steveoliver commentedUpdating issue summary with location of reference tests.
Comment #4
bojanz commentedTagging for dev days. Of course, as long as it's unassigned it can be taken by non-devdays people too :)
@NickWilde
Any updates on progress?
Comment #5
bojanz commentedComment #6
finneI will pick this up today at DDDmilan
Comment #7
finneComment #8
finnePatch for this issue that adds tests:
https://github.com/drupalcommerce/commerce/pull/427
I added 2 todo's that might be added to expand the test coverage. But the basics are now tested.
Comment #9
mglamanMarking for review, since we have a PR in process.
Comment #10
bojanz commentedCommitted finne's work:
http://cgit.drupalcode.org/commerce/commit/?id=d696d45
This is a good start.
We also need to test the editing of checkout pane settings. Once that part is done, we can close this issue.
Comment #11
finneThanks for the edit, bojanz. I will continue work on this issue, hopefully somewhere this week.
Comment #12
borisson_I started work on this: https://github.com/drupalcommerce/commerce/pull/463, there seems to be an error when running the test.
Exception: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\MultistepDefault' not found or invalid function name Drupal\Core\Form\FormValidator->doValidateForm()() (Line: 277)Not sure how to resolve that.
Comment #13
borisson_Test is green locally, travis is still running.
Comment #15
bojanz commentedCommitted.