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.
PHP Fatal error: Uncaught Error: Cannot instantiate abstract class Drupal\Tests\jsonapi\Functional\JsonApiFunctionalBaseTest in /Users/chris.hamper/Sites/devdesktop/drupal-8x/core/scripts/run-tests.sh:745
Stack trace:
#0 /Users/chris.hamper/Sites/devdesktop/drupal-8x/core/scripts/run-tests.sh(66): simpletest_script_run_one_test('44', 'Drupal\\Tests\\js...')
#1 {main}
thrown in /Users/chris.hamper/Sites/devdesktop/drupal-8x/core/scripts/run-tests.sh on line 745
Comment | File | Size | Author |
---|---|---|---|
#3 | automated_tests_broken-2846857-3.patch | 1.86 KB | hampercm |
|
Comments
Comment #2
hampercm CreditAttribution: hampercm at Acquia commentedThis is a result of the changes to the functional tests made for multilingual GET support. I'm not sure why the abstract base class is being instantiated, as this pattern seems to be used for functional tests in core.
Comment #3
hampercm CreditAttribution: hampercm at Acquia commentedIt turns out that the
@group
annotation in the PHPDoc is what was causing the abstract class to be instantiated as if it had valid tests. Removing that fixes the failure. I also renamed the ...BaseTest class to ...TestBase for consistency.Comment #4
Wim LeersComment #5
e0ipsoI'm very confused about this issue. I was doing what this patch contains in the past and I was recetly corrected in that behavior (#2833282: Fix the testbot). Maybe they changed the testbot.
I'll be merging this ASAP. Sorry it took me so long.
Comment #7
e0ipso