PHP Fatal error: Declaration of Drupal\Tests\pathauto\Functional\PathautoTestBase::setUp() must be compatible with Drupal\Tests\BrowserTestBase::setUp(): void

Created on 28 February 2024, 9 months ago

Problem/Motivation

Execution of PHPunit tests fails with error:

PHP Fatal error: Declaration of Drupal\Tests\pathauto\Functional\PathautoTestBase::setUp() must be compatible with Drupal\Tests\BrowserTestBase::setUp(): void in /var/www/html/modules/contrib/pathauto/tests/src/Functional/PathautoTestBase.php on line 24

Steps to reproduce

In folder /core run phpunit:

  ../vendor/bin/phpunit ../modules/contrib/pathauto

Proposed resolution

Tests should run without error.

🐛 Bug report
Status

Postponed: needs info

Version

1.12

Component

Code

Created by

🇺🇦Ukraine vtkachenko

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

Comments & Activities

Production build 0.71.5 2024