Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Apr 2021 at 22:53 UTC
Updated:
10 May 2021 at 08:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jedihe commentedLet's try this patch. I added the test at core/tests/Drupal/Tests/Core/Theme/CoreThemesAutoloadedForTests.php
Comment #3
jedihe commentedComment #5
jedihe commentedNo-op update for the patch: add the new item to the array following alphabetic ordering as the existing code does.
No need to trigger tests, as this is an obvious no-op from #2.
Comment #6
joelpittetHurray, thanks for the patch and the test. That is what we were looking for! Now we can unit test our theme classes!
Comment #7
joelpittetFor context, we did a variation of our test from the other issue with a unit test and ran into this bug, adding that link saved us from manually adding the class through
include_once $root ...Comment #9
joelpittetComment #10
larowlanQueued a test-run for the RTBC patch, for some reason it has not yet had one
Code looks good to me
Comment #12
larowlanCommitted ccc9255 and pushed to 9.2.x. Thanks!
As the risk of disruption here is low, backported to 9.1.x
Thanks folks