Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Running:
./vendor/bin/phpunit -c core/
Will result in the following error:
PHP Fatal error: Trait 'Drupal\field_group\Tests\FieldGroupTestTrait' not found in /web/modules/contrib/ds/tests/src/Functional/FieldGroupTest.php on line 14
Fatal error: Trait 'Drupal\field_group\Tests\FieldGroupTestTrait' not found in /web/modules/contrib/ds/tests/src/Functional/FieldGroupTest.php on line 14
Currently FieldGroupTest test is unable to find the FieldGroupTestTrait.
Proposed resolution
Fix namespace in FieldGroupTest.php so FieldGroupTestTrait can be be used.
Comment | File | Size | Author |
---|---|---|---|
#2 | running-phpunit-2947362-1.patch | 456 bytes | roborew |
Comments
Comment #2
roborew CreditAttribution: roborew at Christian Aid commentedEdited the use statement to be:
Fixes the issue.
Comment #3
darvanenYep, works well. RTBC.
Comment #5
swentel CreditAttribution: swentel as a volunteer commentedcommitted and pushed, thanks!
Comment #7
jaydee1818 CreditAttribution: jaydee1818 commentedI'm still getting this error - patch doesn't seem to work