Change remaining Link module test dataproviders to static

Created on 6 April 2024, 8 months ago
Updated 22 April 2024, 7 months ago

Problem/Motivation

Follow up to #3353210-30: [PHPUnit 10] @dataProvider methods must be declared static and public .

Convert remaining Link module test dataproviders to static

Steps to reproduce

Proposed resolution

Merge request link

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.3

Component
PHPUnit 

Last updated about 22 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

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

Merge Requests

Comments & Activities

  • Issue created by @mondrake
  • 🇮🇹Italy mondrake 🇮🇹
  • Merge request !7357Resolve #3439079 "Change remaining link" → (Open) created by mondrake
  • Pipeline finished with Failed
    8 months ago
    Total: 603s
    #139667
  • Pipeline finished with Failed
    8 months ago
    Total: 693s
    #139699
  • 🇮🇹Italy mondrake 🇮🇹

    I think this finds a bug: call count expectations for mocks created in dataproviders (in PHPUnit 9, in 10 this will no longer be a problem) are not checked. So moving the mock creation to the test as in this MR we actually fix the bug.

  • Pipeline finished with Failed
    8 months ago
    Total: 717s
    #139757
  • Status changed to Needs review 8 months ago
  • 🇮🇹Italy mondrake 🇮🇹

    Practically LinkNotExistingInternalConstraintValidatorTest was rewitten - a large part of the test was configured in the data provider, which cannot stand. So better have independent tests (these are unit tests) and common code be put in a helper function.

  • Pipeline finished with Failed
    8 months ago
    Total: 2890s
    #140109
  • Status changed to Needs work 8 months ago
  • 🇺🇸United States smustgrave

    Not sure why but re-ran the failing javascript tests 3 times and they failed each so doesn't appear to be random.

  • Status changed to Needs review 8 months ago
  • 🇮🇹Italy mondrake 🇮🇹

    Tried rebasing. The MR is only touching test code, so I'm having hard time to understand how this could fail a totally different test.

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

    Ended up getting a random functional test this time haha. Re-ran that though and it passed.

    So as of now it's green.

    • catch committed 6cbb1a6d on 10.3.x
      Issue #3439079 by mondrake: Change remaining Link module test...
  • Status changed to Fixed 8 months ago
  • 🇬🇧United Kingdom catch

    Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!

    • catch committed 0186f886 on 11.x
      Issue #3439079 by mondrake: Change remaining Link module test...
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024