Closed (fixed)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2015 at 10:58 UTC
Updated:
30 Apr 2016 at 23:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
strykaizerAttached you can find the "Complex widget" tests from D8 ported to d7.
Porting this tests exposed one issue in d7, which I still need to look in to, (checking the "delete referenced entity" checkbox on deleting a reference, did not delete the entity, could be both a real issue or a test ported wrong)
Comment #3
strykaizerOne short array less now...
Comment #5
strykaizerLets see if this is more 5.3 compatible now...
Comment #7
strykaizerAdded entityreference as test dependency
Comment #9
strykaizerctools also added as testdependency, almost running out of ideas
Comment #12
strykaizer[23:40:44] StryKaizer > Writing tests for inline entity form. They work on my machine (5.3 and 5.6) but fail on d.o.. The custom ief_test module is not getting enabled in the setup. Anyone any suggestions on what I can do to fix this? Already added 2 test_dependencies (entityreference and ctools) which are needed for the ief_test module but no dice
[23:42:13] berdir > StryKaizer: new dependencies do not work immediately. you need to get them committed and give d.o some time to parse that and update its info about the project
[23:42:25] StryKaizer > berdir oh, great, thanks!
[23:42:28] berdir > StryKaizer: so you need to make a patch with just the dependencies and get that committed first
Guessing this is the issue why the above tests fail...
The expected output of the tests is 1 fail, being:
- The inline entity was deleted from the site. Other multiple_values_widget.test 357 MultipleValuesWidgetTest->testEntityEditingAndRemoving()
Comment #13
bojanz commentedThe tests still refer to the "Complex" widget which is called "Multiple" in D7, let's update those references, and then I can commit this.
Comment #14
strykaizerRenamed to Multiple
Comment #16
strykaizerI looked into the issue where referencing nodes did not get deleted, and it looks like it's a d7 ajax test issue (could not reproduce it manually).
Changed this part to use non-ajax posts in the tests, should be all green now, once the test-dependencies are committed.
Comment #19
bojanz commentedCommitted, thanks!
Comment #20
bojanz commentedThe tests are now running: https://www.drupal.org/pift-ci-job/249781 though it seems that the nested ones are failing. We need to figure out why.
EDIT: Nevermind, passing now.