setUp-Method in Test ViewFieldUITest fails due to new parent signature in D9.4

Created on 23 June 2022, almost 3 years ago
Updated 13 January 2025, 3 months ago

Problem/Motivation

When running tests with phpunit the error

PHP Fatal error:  Declaration of Drupal\Tests\views_field_view\Functional\ViewFieldUITest::setUp($import_test_views = true) must be compatible with Drupal\Tests\views_ui\Functional\UITestBase::setUp($import_test_views = true, $modules = [...]) in /Users/krugs/IdeaProjects/empiriecom_profile/modules/views_field_view/tests/src/Functional/ViewFieldUITest.php on line 46

occurs

Steps to reproduce

run './vendor/bin/phpunit --group views_field_view' with d9.4 and this module installed

Proposed resolution

Change signature of method setUp according to parent class UITestBase

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇩🇪Germany skrug Bamberg

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024