Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Jan 2015 at 18:08 UTC
Updated:
13 Feb 2015 at 13:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lauriiiStart for this patch
Comment #3
wim leersI understand we want to be able to test Classy. But let us make sure this is the right solution; it could be argued that if you want to test Classy-based markup, you have to write Kernel tests using Classy.
The guideline has been to test with Stark for a good reason: to test everything in an as bare/minimal as possible form. But I think it was to test with minimal *CSS*, not with minimal *markup*, right? If it was about testing with minimal markup, then the change to Classy would be okay, I think.
That being said: what would still be the use of Stark once we use Classy for the purpose Stark was designed for? It sounds to me like Stark should go away, because Classy supersedes it?
Ideally, we'd get sun's input on this.
Comment #4
davidhernandezStark would never go away, because it will always be the way to receive core module templates that are not being overridden by Classy.
Comment #5
wim leers#4: right, right, stupid me! I think the rest of my comment still stands though.
Comment #6
alexpottSo I think the reason for the theme hack in KernelTestBase was because of how drupal_render used to work. It works different now and so is unnecessary.
Any KernelTestBase test that needs something specific from a theme should just install the theme in that test's setUp and set the default theme.
Comment #7
cilefen commentedI think this is the correct title.
Comment #8
cilefen commentedI agree with this issue 100%. It doesn't interfere with tests that extend KernelTestBase but also enable themes, such as CKEditorTest, which enables bartik.
Comment #9
tim.plunkettThe issue summary and title were describing the old approach, I think this new title better explains things?
Comment #10
humansky commentedComment #11
cilefen commentedComment #12
almaudoh commentedBased on patch and title, this is really a simpletest issue.
Comment #13
catchCommitted/pushed to 8.0.x, thanks!