Problem/Motivation

See remaining test failures on https://www.drupal.org/pift-ci-job/2447967

We had to do similar for modules, for example in #3264435: Help topics and rest don't filter out deprecated modules when testing.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3302800

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch created an issue. See original summary.

Vighneshh made their first commit to this issue’s fork.

quietone made their first commit to this issue’s fork.

quietone’s picture

I only had time to fix two tests. In the MR seven is deprecated to make it easy to see what else fails.

nod_’s picture

should we create a helper to do that instead of duplicating the code in different places?

catch’s picture

We ended up not doing this in the similar modules issues because the lists were used in slightly different ways (i.e. sometimes experimental modules were filtered out too, sometimes not). Don't think it hurts to add a helper if it's useful and straightforward, but also if it's only four or five tests wouldn't block on it - could be done in a follow-up.

nod_’s picture

Status: Active » Needs work
Parent issue: » #3285205: [META] Convert test that use Bartik/Seven to Olivero/Claro
nod_’s picture

Pushed a few updates, bit of arm flailing in some places to be honest, let's see what it does.

catch’s picture

Some of the changes are already covered by #3281434: Update System module tests to not use Bartik and Seven, which should remove the last explicit references.

We only need to worry about the implicit use of the themes when it's looping over everything it finds here.

catch’s picture

Issue tags: +Needs reroll

#3302800: Core tests need to filter out deprecated themes when looping over all themes landed so this needs a rebase (which should mean some of the changes to system tests are no-longer relevant).

Also with Seven tests we can do @group legacy instead of skipping the tests.

quietone’s picture

Issue tags: -Needs reroll

That was the rebase

quietone’s picture

I checked back with what was done for Color and the @legacy was added in the issue that did the deprecation. I think we should do the same here.

quietone’s picture

In ResolvedLibraryDefinitionsFilesMatchTest the themes to be deprecated have been removed from the $allThemes, the list of themes to test. That means the filter done in code can be removed (it was wrong anyway) and has been removed.

Drupal\KernelTests\Config\DefaultConfigTest reports a deprecation notice because help_topics has an optional config, block.block.seven_help_search.yml. What happens to that?

And this MR has the seven deprecated to find the errors, that will have to be removed when the tests are updated.

catch’s picture

help_topics has an optional config, block.block.seven_help_search.yml. What happens to that?

I think we probably need to remove that, at least unless we can move it to optional config in seven module?

longwave made their first commit to this issue’s fork.

longwave’s picture

Removed irrelevant RDF mapping and reverted the change in SevenLayoutBuilderTest.

Opened #3303787: Move core/modules/help_topics/config/optional/block.block.seven_help_search.yml to Seven

catch’s picture

This is RTBC for me except for removing the Seven deprecation from the MR.

nod_’s picture

Status: Needs work » Reviewed & tested by the community

per #18 :)

  • catch committed e588143 on 10.0.x
    Issue #3302800 by nod_, quietone, longwave: Core tests need to filter...
  • catch committed d1860b9 on 10.1.x
    Issue #3302800 by nod_, quietone, longwave: Core tests need to filter...
  • catch committed 40c8434 on 9.5.x
    Issue #3302800 by nod_, quietone, longwave: Core tests need to filter...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 10.1.x, cherry-picked to 10.0.x and 9.5.x, thanks!

Status: Fixed » Closed (fixed)

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