Removed deprecated code in core/tests/Drupal/KernelTests

Created on 21 March 2024, 9 months ago
Updated 1 May 2024, 8 months ago

Problem/Motivation

Removing deprecated code in Drupal11 from the KernelTests directory.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 14 hours ago

Created by

🇳🇨New Caledonia satane

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @satane
  • 🇳🇨New Caledonia satane
  • Pipeline finished with Success
    9 months ago
    Total: 525s
    #125745
  • Status changed to Needs review 9 months ago
  • 🇳🇨New Caledonia satane
  • Status changed to Needs work 9 months ago
  • 🇺🇸United States smustgrave

    These are testing deprecated functions in core. If we remove the test coverage the functions they go to should also be removed.

  • First commit to issue fork.
  • Pipeline finished with Success
    8 months ago
    Total: 658s
    #140675
  • Status changed to Needs review 8 months ago
  • 🇳🇿New Zealand quietone

    @smustgrave, can you be more specific about what functions need to be removed? I don't see that being applicable here.

  • Status changed to RTBC 8 months ago
  • 🇺🇸United States smustgrave

    That was my mistake. Believe I had a similar ticket up at the time but deprecation tests appear to be for tests traits.

  • First commit to issue fork.
  • Pipeline finished with Success
    8 months ago
    #142586
  • Status changed to Fixed 8 months ago
  • 🇬🇧United Kingdom catch

    Committed/pushed to 11.x, thanks!

  • Status changed to RTBC 8 months ago
  • 🇬🇧United Kingdom catch

    I messed up here and never pushed the commit, and now there are conflicts. Just pushed a rebase to get this going again.

  • Status changed to Needs work 8 months ago
  • 🇬🇧United Kingdom alexpott 🇪🇺🌍

    The rebase needs some work.

  • Pipeline finished with Failed
    8 months ago
    Total: 1076s
    #148189
  • Status changed to Needs review 8 months ago
  • 🇬🇧United Kingdom catch

    Either the original MR missed a deprecation removal or we added new deprecations after this was done.

    Had to fix FileSaveUpload test which wasn't updated with the KernelTestBase session changes, and remove one legacy method on KernelTestBaseTest

  • Status changed to Needs work 8 months ago
  • The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • Status changed to Needs review 8 months ago
  • 🇬🇧United Kingdom catch

    Should be better.

    FileSaveUploadTest doesn't fail for me running with phpunit locally and also doesn't fail on gitlab... which I just realised is 'fine' because it's @legacy in its own right so allowed to trigger deprecation errors. Maybe could have just removed the method here but feels a bit out of scope to do that too.

  • Status changed to RTBC 8 months ago
  • 🇺🇸United States smustgrave

    The remaining instances of "deprecated" in this folder belong to deprecations in lib folder and will be removed with those ticket removals. So believe this is good.

  • 🇬🇧United Kingdom alexpott 🇪🇺🌍

    Committed 5637aff and pushed to 11.x. Thanks!

  • Status changed to Fixed 8 months ago
    • alexpott committed 5637aff4 on 11.x
      Issue #3432867 by catch, Satane, quietone: Removed deprecated code in...
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024