Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Current D7 default settings:
Current D8 default settings:
Comment | File | Size | Author |
---|---|---|---|
#14 | interdiff.txt | 1.75 KB | dermario |
#14 | strings_to_remove-2656958-12.patch | 5.97 KB | dermario |
#10 | interdiff.txt | 3.1 KB | dermario |
#10 | strings_to_remove-2656958-10.patch | 4.99 KB | dermario |
#8 | strings_to_remove-2656958-8.patch | 1.89 KB | gaurav.goyal |
Comments
Comment #2
Dave ReidAppears we had duplicate lines in the default config. And now we'll need tests to ensure this works out of the box.
Comment #3
Dave ReidComment #4
Dave ReidWith update hook, still needs tests.
Comment #5
BerdirNeeds a reroll as we have new update functions.
Comment #6
gaurav.goyal CreditAttribution: gaurav.goyal at Innoraft commentedPatch Rerolled. Updating status to needs review so that bots can review the patch.
Comment #7
gaurav.goyal CreditAttribution: gaurav.goyal at Innoraft commentedComment #8
gaurav.goyal CreditAttribution: gaurav.goyal at Innoraft commentedOne of the test for pathauto_cleanstring() function still uses old configuration as default value. I think we missed to update this.
Attached patch contains the update.
Comment #9
BerdirWhat about using installConfig('pathauto') to install the default config and check with those settings? then we have that covered.
Comment #10
dermarioI attached the the changes to the settings form webtest, to ensure the changes introduced by patch in #8 will not break the tests introduced by https://www.drupal.org/node/2674494
This test will also check if the default values in the form are set correctly.
Do you mean we should use $this->installConfig(array('pathauto')) in PathautoUnitTest::testCleanString() instead of using $config->set() ?
Comment #11
BerdirYes, that's exactly what I meant. Assuming the default configuration actually matches what we save there, if not, then comment so and we'll ignore that, at least for this issue.
Comment #12
BerdirComment #13
dermarioComment #14
dermarioI gave it a try to refactor the test to use installConfig() and completely rely on settings in pathauto.settings.yml
Comment #15
BerdirNice, I like that.
Comment #16
BerdirThanks, committed.