(PHPUnit) Use static data providers

Created on 5 August 2024, about 1 year ago
Updated 19 August 2024, about 1 year ago

Problem/Motivation

PHPUnit 10 has deprecated non-static data providers. So all data providers in tests should become static.

See also the change record .

Proposed resolution

Make all data providers static. For a few data providers that will be more challenging as they use $this, for example this is the case in \Drupal\Tests\feeds_ex\Functional\Feeds\Parser\XmlParserTest::xmlSourcesDataProvider(). In there the property $customSourceType is get. This can be fixed by making the property static instead.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands megachriz

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024