Kernel test signature for provider method doesn't match parent

Created on 17 October 2024, 6 months ago

Problem/Motivation

Not sure why this is being flagged in my test suite but i noted the following error whilst running Kernel tests:

Fatal error: Cannot make static method Drupal\Tests\ckeditor5\Kernel\SmartDefaultSettingsTest::provider() non static in class Drupal\Tests\entity_embed\Kernel\UpgradePathTest in /opt/drupal/web/modules/contrib/entity_embed/tests/src/Kernel/UpgradePathTest.php on line 136

This is as a result of the provider method signature being different from the parent - defining the child method as static resolves the issue.

Steps to reproduce

Run kernel tests and observe the error.

Proposed resolution

Make the child method static

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Tests

Created by

🇬🇧United Kingdom 8ballsteve

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