Problem/Motivation

Because of #3083275: [meta] Update tests that rely on Classy to not rely on it anymore and Classy being deprecated in Drupal 9 + removed in Drupal 10,: Tests that aren't specifically testing Classy yet declare $defaultTheme = 'classy'; should be refactored to use Stark as the default theme instead.

Proposed resolution

Change all tests in this module to use Stark as the default theme, and refactor the tests where needed so they continue to function properly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

danflanagan8 created an issue. See original summary.

danflanagan8’s picture

Assigned: danflanagan8 » Unassigned
Issue tags: +Novice

This one is really straightforward. There is a single test class (Drupal\Tests\jsonapi\Functional/BlockTest) in jsonapi that mentions Classy. There are no assertions related to the markup. There just needs to be a theme to which the block plugin is assigned.

In short, just do a find/replace in Drupal\Tests\jsonapi\Functional/BlockTest that changes 'classy' to 'stark'.

I'm going to mark this as Novice to encourage participation.

Shashwat Purav’s picture

Status: Active » Needs review
FileSize
1.23 KB

Created a patch to change 'classy' to 'stark'.

danflanagan8’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

Same comment as on #3272746: Layout Discovery tests should not rely on Classy though. We should save Novice issues for Novice contributors.

alexpott’s picture

Version: 9.4.x-dev » 9.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed a5eec7f198 to 10.0.x and 6ee580fedc to 9.4.x and 55346fcc34 to 9.3.x. Thanks!

Backported to 9.3.x to keep tests aligned.

  • alexpott committed a5eec7f on 10.0.x
    Issue #3272731 by Shashwat Purav, danflanagan8: jsonapi tests should not...

  • alexpott committed 6ee580f on 9.4.x
    Issue #3272731 by Shashwat Purav, danflanagan8: jsonapi tests should not...

  • alexpott committed 55346fc on 9.3.x
    Issue #3272731 by Shashwat Purav, danflanagan8: jsonapi tests should not...

Status: Fixed » Closed (fixed)

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