Problem/Motivation

StableLibraryOverrideTest attempts to assert that all core modules have their CSS copied to the Stable theme.
It excludes contrib modules, hidden modules, testing modules.
It does not exclude experimental modules, which should NOT have their CSS in Stable.

Proposed resolution

Ignore experimental modules.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett created an issue. See original summary.

tim.plunkett’s picture

Status: Active » Needs review
FileSize
1.13 KB

Not 100% sure how to prove this is working

Wim Leers’s picture

A test with a hidden experimental module perhaps?

Although then we're testing a test… :P

davidhernandez’s picture

Issue tags: +Needs tests

Add an experimental module with a library. getAllLibraries() grabs all libraries, correct? So it shouldn't appear in that group. Does \Drupal::moduleHandler()->getModuleList(); only return installed modules? Is that sufficient to check, or do assets actually need to be checked?

As as I can tell there is also nothing checking the other module types, so should there be individual checks for all of them? A dummy experimental module, test module, contrib module, hidden module.

tim.plunkett’s picture

If we ship with a dummy experimental module that isn't hidden, it will show to all end users of Drupal. Isn't that hugely undesirable?

Wim Leers’s picture

Issue tags: -Needs tests

Tim pointed out to me that the existing condition is already checking for hidden modules, and is excluding those. So, we can't write a test with a hidden module, because that'd already work without any changes.

Therefore the only way to prove this works IMO is to write a FAIL test here, but commit #2.

Finally, I want to stress again that writing tests for this would mean writing test coverage for a test. So, removing the Needs tests issue tag.

The last submitted patch, 7: 2745915-StableLibraryOverrideTest-7-FAIL.patch, failed testing.

The last submitted patch, 7: 2745915-StableLibraryOverrideTest-7-PASS-DO-NOT-COMMIT.patch, failed testing.

tedbow’s picture

#7 Looks good to me. I tested all three patches and got the expected results.

tedbow’s picture

Status: Needs review » Reviewed & tested by the community

Let's get this in!

davidhernandez’s picture

+1

  • Cottser committed bbfb417 on 8.2.x
    Issue #2745915 by tim.plunkett, Wim Leers, davidhernandez, tedbow:...

  • Cottser committed 9365344 on 8.1.x
    Issue #2745915 by tim.plunkett, Wim Leers, davidhernandez, tedbow:...
star-szr’s picture

Status: Reviewed & tested by the community » Fixed

Makes sense. Committed and pushed bbfb417 to 8.2.x and 9365344 to 8.1.x. Thanks!

star-szr’s picture

Version: 8.2.x-dev » 8.1.x-dev

Status: Fixed » Closed (fixed)

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