phpunit tests cause PHP Fatal Error

Created on 23 February 2024, 10 months ago

Problem/Motivation

The module tests contain a php syntax error. This causes phpunit to fail, and prevents to execute any test completely when the module is installed.

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

Steps to reproduce

1. Set up phpunit for a drupal project.
2. Require the module.
3. Execute phpunit.
4. See the error message described before.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain guiu.rocafort.ferrer Barcelona

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