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
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hampercm created an issue. See original summary.

hampercm’s picture

Issue summary: View changes

This 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.

hampercm’s picture

Assigned: hampercm » Unassigned
Status: Active » Needs review
FileSize
1.86 KB

It 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.

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community
e0ipso’s picture

I'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.

  • e0ipso committed 71dfaeb on 8.x-1.x authored by hampercm
    tests(testbot) Automated tests broken (#2846857 by hampercm)
    
e0ipso’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.