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.
Based on discussions in #1593058: Remove system.info's files[] entry, we are to move the tests in common.test over to PSR-0.
Comment | File | Size | Author |
---|---|---|---|
#10 | 1598564-common-tests-psr-0-10.patch | 250.63 KB | Niklas Fiekas |
#8 | 1598564-common-tests-psr-0-8.patch | 250.63 KB | Niklas Fiekas |
#6 | 1598564-common-tests-psr-0-6-mergediff.txt | 2.26 KB | Niklas Fiekas |
#6 | 1598564-common-tests-psr-0-6-interdiff.txt | 4 KB | Niklas Fiekas |
#6 | 1598564-to-be-manually-merged.txt | 2.11 KB | Niklas Fiekas |
Comments
Comment #1
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedDoing this now.
Comment #2
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedClasses converted.
I have also attached a version of the patch with much lower thresholds for rename and copy detection. That makes for a much bigger patch, but shows most of the code is directly coming from common.test.
Edit: I noticed that even 2% similarity index are not enough for the smaller tests. git blame -C would be an alternative.
Comment #4
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedSome instances of stdClass() had to be prefixed with \.
Comment #5
aspilicious CreditAttribution: aspilicious commentedThis probably will need a reroll with the recent commits. (I think it has to be checked manually)
And with recent discussion I would put "use stdClass" on top on the file without the \ prefix. (for now).
Comment #6
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedReroll.
Attached is:
git log -p ..MERGE_HEAD -- common.test
, showing the changes to common.test that had been done in the mean time and couldn't be automatically merged.git show
after doing the merge.Comment #8
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedSigh ... the commit that I just merged in has been reverted as of #1464244-18: Rewrite as URL adding equals sign to end of url..
Comment #9
aspilicious CreditAttribution: aspilicious commentedWoow I couldn't find any more errors. You're to good...
We should get this is as soon as possible, this conflicts a lot :)
Comment #10
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedReroll chasing the info file. I like the pace at which the PSR-0 patches are going in.
Comment #11
aspilicious CreditAttribution: aspilicious commentedback to rtbc
Comment #12
catchCommitted/pushed to 8.x, thanks!