Hi,
As requested by Fabianx on IRC and on the related issue #1545964: Do not copy over the owner and engine of a theme if the child theme uses a different engine than the base theme, here's a patch for Drupal 8 that adds some tests for testing themes and subthemes engine inheritance.
Patch will follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | issue-2825382-drupal8-2-x.patch | 2.94 KB | pol |
Comments
Comment #2
polHere's the patch.
Comment #3
dawehnerThis should be IMHO a kernel test, and not yet another old and slow web test. Nothing in this test is really using an HTTP request.
Comment #4
polHi Daniel,
For these I will need help, I'm not at ease with those tests yet.
Thanks.
Comment #5
fabianx commented#3: Could you support Pol to implement this, please?
Comment #6
dawehnerTo be clear, there are many more people which are able to answer this question.
The controller beneath that (
\Drupal\theme_test\ThemeTestController::testTemplate) calls out to\Drupal::theme()->render('theme_test_template_test', array())You can call out to the same in a kernel test
Comment #7
fabianx commentedHm, no other test in the theme system uses KernelTestBase, so I am setting to RTBC as we should maybe just convert the whole test base over instead.
Comment #8
dawehnerAt least this could be easily moved to a kernel test, my just moving the code over
Comment #10
joelpittetLooks like a random fail, should the tests be moved @dawehner?
Comment #11
lauriiiThis could be moved quite easily to the kernel tests so let's do so
Comment #16
joseph.olstadThere's a few different kernel tests
which kernel test should this be moved to?
find core -name '*kernel*'Comment #24
smustgrave commentedCame up as daily BSI target.
Based on the title this seems like a task vs a bug
Issue summary should be updated with the standard template