Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views_ui.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
11 Jun 2013 at 14:12 UTC
Updated:
29 Jul 2014 at 22:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettOkay, here's the fix with tests. Basically, instead of examining the display config directly, we call the pre-existing method that lets it decide what the path is.
And since we just fixed the logic of that method, everything is peachy.
Comment #2
tim.plunkett@damiankloip pointed me to #2012882: Move getDisplaysList() out of View storage class to ViewListController, and suggested I follow its lead. I agree.
I had to move some test coverage from ViewStorageTest to this new test method (since the view entity no longer has a method to find its displays paths).
Comment #3
dawehnerNice stuff!
I try to figure out why there can't be a unit test instead and I can't think of one.
Should be String::checkPlain() now.
Comment #4
tim.plunkettLet's just fix the class.
Comment #6
xjm#4: vdc-2016939-4.patch queued for re-testing.
Comment #7
damiankloip commentedThat looks good to me.
Comment #8
alexpottNeeds a reroll
Comment #9
tim.plunkettRerolled after #2012882: Move getDisplaysList() out of View storage class to ViewListController
Comment #11
tim.plunkett#9: vdc-2016939-9.patch queued for re-testing.
Comment #13
tim.plunkett#9: vdc-2016939-9.patch queued for re-testing.
Comment #15
pcambra#9: vdc-2016939-9.patch queued for re-testing.
Comment #17
tim.plunkett#9: vdc-2016939-9.patch queued for re-testing.
Comment #19
dawehnerJust some additional mocking is required to add a test for that.
Comment #20
dawehnerLet me fix the use statements fast.
Comment #21
tim.plunkett#20: vdc-2016939-20.patch queued for re-testing.
Comment #22
damiankloip commentedSeems vaguely related, but ok :) These things need to be switched out anyway.
The view entity ('instance' also maybe)?
Additional space
We go to desperate measures to unit test a method nowadays!
I don't think this message is really what's being tested?
Comment #23
dawehnerThe point is that the message is just shown/displayed if the test failed.
Comment #24
damiankloip commentedYep, but it still seems like it's not really what the test is going. No rendering involved.
Comment #25
dawehnerIf we can't come up with a better title, let's drop it?
Comment #26
dawehnerFixed the points.
Comment #27
tim.plunkettThose fixes are clearer. Thanks for the awesome test!
Comment #28
alexpottNeeds a reroll..
Comment #29
dawehnerRerolled.
Comment #30
tim.plunkettThanks, reroll is good.
Comment #31
alexpottCommitted 2f872b8 and pushed to 8.x. Thanks!
Manually tested all looks good