Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Oct 2012 at 09:06 UTC
Updated:
29 Jul 2014 at 21:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
barbun commentedAnd here's the patch.
Comment #3
barbun commentedOk, added small tweak for default value.
Btw, I built my patch over this:
http://git.drupal.org/sandbox/heyrocker/1145636.git
is that ok?
Comment #4
barbun commentedComment #6
barbun commented#3: 1807266-user-cancel-method-3.patch queued for re-testing.
Comment #7
cameron tod commentedThis patch looks basically fine, just a few whitespace issues:
There's a few leading whitespace issues like this.
Trailing whitespace here.
I will post a patch shortly...
Comment #8
cameron tod commentedCleaned up the whitespace stuff.
Comment #9
berdirIt probably wouldn't hurt to add some basic test coverage for this, see SystemUpgradePathTest.php (we should rename that to ConfigUpgradePathTest in another issue). Then we don't have to test it manually to RTBC this.
Comment #10
cameron tod commentedOk so I have added an upgrade path, and set the default for the value in user.settings.yml instead of using a ternary.
There's an unused variable, $default_method, in user_cancel_confirm_form(), which is in D7 as well, so I wil create an issue for that once this gets committed.
Comment #11
cameron tod commentedIssue created to rename the test class: #1825648: Rename SystemUpgradePathTest to ConfigUpgradePathTest, so we can have tests for the CMI upgrade path
Comment #12
berdirNot sure if we need a separate test method for this, because it's the same database dump anyway. Other than that, this looks good to me.
Comment #13
cameron tod commentedMoved tests into same method, renamed, and updated comment.
Comment #14
berdirYes, I think this is fine like this.
Comment #15
catchLooks good. Committed/pushed to 8.x.
Comment #16
cameron tod commentedGreat stuff. I have posted a patch over in #1825648: Rename SystemUpgradePathTest to ConfigUpgradePathTest, so we can have tests for the CMI upgrade path, if we can get that or something similar in it will be a good conduit to increasing test coverage of the conversion effort.
Comment #17.0
(not verified) commentedUpdated issue summary.