Test setup() declaration incompatibility

Created on 26 July 2022, over 2 years ago
Updated 23 October 2023, about 1 year ago

Problem/Motivation

The Kernel/CheckoutPaneTest is not compatible with the current OrderKernelTestBase.

The following error is reported:

PHP Fatal error:  Declaration of Drupal\Tests\commerce_checkout_order_fields\Kernel\CheckoutPaneTest::setUp() must be compatible with Drupal\Tests\commerce_order\Kernel\OrderKernelTestBase::setUp(): void in /var/www/html/web/modules/contrib/commerce_checkout_order_fields/tests/src/Kernel/CheckoutPaneTest.php on line 36

Proposed resolution

Make the setup() return compatible with the parent class.

πŸ“Œ Task
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States TomTech

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