Tests fails because of typo in webform_cards submodule FunctionalJavaScript folder

Created on 18 April 2024, over 1 year ago

Problem/Motivation

PHPUnit tests are failing because of an uppercase "S" in the following folder web/modules/contrib/webform/modules/webform_cards/tests/src/FunctionalJavaScript.

Here is the stacktrace I get:

Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/var/www/html/web/modules/contrib/webform/modules/webform_cards/tests/src/FunctionalJavaScript): Failed to open directory: No such file or directory in /var/www/html/web/core/tests/bootstrap.php:25
Stack trace:
#0 [internal function]: RecursiveDirectoryIterator->__construct('/var/www/html/w...', 16384)
#1 /var/www/html/web/core/tests/bootstrap.php(25): RecursiveDirectoryIterator->getChildren()
#2 [internal function]: drupal_phpunit_find_extension_directories('/var/www/html/w...')
#3 /var/www/html/web/core/tests/bootstrap.php(143): array_map('drupal_phpunit_...', Array)
#4 /var/www/html/web/core/tests/bootstrap.php(155): drupal_phpunit_populate_class_loader()
#5 Standard input code(123): require_once('/var/www/html/w...')
#6 {main}
  thrown in /var/www/html/web/core/tests/bootstrap.php on line 25

Steps to reproduce

Simply try to run some phpunit tests on you current Drupal installation.

Proposed resolution

Remove the uppercase "S" in the folder name: FunctionalJavaScript -> FunctionalJavascript.

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡«πŸ‡·France mably

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