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.
Problem/Motivation
Followup to #3178037: Fix typo "is has" in SimpleTest deprecation warning. There are several places in our code documentation (and one test assertion message) with the typo "is has".
[ayrton:drupal | Tue 14:08:07] $ grep -r " is has " * | grep -v "vendor" | grep -v "node_modules"
core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php: $this->assertTrue($depth < $depth2, 'Transaction depth is has increased with new transaction.');
core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php: // @todo Use entity_type once it is has multilingual Views integration.
core/modules/simpletest/simpletest.install: 'description' => t('SimpleTest is has been removed from Drupal 9.0.0 and can no longer be installed. A contributed module is available for those who wish to continue using SimpleTest during the transition from Drupal 8 to 9. <a href=":change-record">See the change record for more information</a>.', [
core/themes/claro/css/theme/media-library.pcss.css: * The added media container receives screen reader focus since it is has the
core/themes/claro/css/theme/media-library.css: * The added media container receives screen reader focus since it is has the
core/themes/seven/css/theme/media-library.css: * The added media container receives screen reader focus since it is has the
Steps to reproduce
grep -r " is has " * | grep -v "vendor" | grep -v "node_modules"
Proposed resolution
Fix the typos (other than the instance in simpletest.install
which is a string change and only applicable to 9.1.x.) That one will be handled in #3178037: Fix typo "is has" in SimpleTest deprecation warning.
Remaining tasks
TBD
Comment | File | Size | Author |
---|---|---|---|
#14 | 3178039-14.patch | 3.66 KB | anmolgoyal74 |
#8 | interdiff_4_8.txt | 2 KB | anmolgoyal74 |
#8 | 3178039-8.patch | 3.67 KB | anmolgoyal74 |
#4 | 3178039-4.patch | 3.25 KB | Matroskeen |
Comments
Comment #2
xjmComment #3
xjmComment #4
MatroskeenHere is the patch for 9.2.x branch.
Comment #5
Kristen PolThanks for the patch.
1.Patch looks okay for 9.2 and addresses the items from the above list except the simpletest one which was split out into separate issue.
2. A different patch is needed for any backporting to 8.9, if allowed.
3. Tests pass for 9.2.
4. Title and issue summary are clear.
5. I'm not sure why the issue version is set to 8.9 so I'm changing to 9.2.
6. Leaving as needs review for now in case we should manually test any of these.
Comment #6
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch #4 on 9.2.x . It removes "is has" from 5 files .The simpletest one is already fixed in that issue separately .
RTBC
Comment #7
alvar0hurtad0This multi-line comment should suit to coding standard.
This multi-line comment should suit to coding standard.
This multi-line comment should suit to coding standard.
Comment #8
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedAddressed #7
Comment #9
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedComment #10
xjm@Kristen Pol, the version was set to 8.9.x because improvements to tests and code comments are backportable to the bugfix branch, and these same issues exist on 8.9.x as well:
We set the branch to the lowest branch that can receive the branch. If the same patch does not apply to all branches, each patch can have the branch it should be tested on specified at upload.
Thanks!
Comment #11
Kristen PolThanks for the clarification. From what I recall, I had only see issues start at highest version and then get backported. I'll try to remember this for future issues.
Note that I added 8.9 to the tests so it would show the fails to apply again so it's clear it needs a different patch.
Comment #12
Kristen Pol@alvar0hurtad0 Thanks for catching that "role" could pop up one line.
@anmolgoyal74 Thanks for the new patch.
The interdiff from #8 addresses the comments from #7.
When trying to patch this against 8.9, the only part that fails is
TranslationLinkTest.php
because the function signature changed to include the return type:protected function setUp() {
to
protected function setUp(): void {
Comment #13
Kristen PolSince #8 looks good for all Drupal 9 branches, moving this back to "needs work" for someone to create a patch for 8.9. Note comment #12 above for why the current patch doesn't apply cleanly to 8.9. Should be a quick fix. Only choose 8.9 for testing that patch. Thanks!
Comment #14
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedRe-rolled for 8.9.x
Comment #15
alvar0hurtad0Looks good to me.
Comment #16
alexpottCommitted and pushed d8a3cf98f5 to 9.2.x and 0a10997a97 to 9.1.x and 3582dc24fd to 9.0.x. Thanks!
Committed 0db4c8f and pushed to 8.9.x. Thanks!
the css build was not actually run it looks like the .css was edited manually... if there is .pcss.css file then changes should be made there and
yarn run build
should be run.Fixed on commit.