Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Dec 2014 at 11:43 UTC
Updated:
14 Jun 2016 at 15:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damienmckennaI just ran into this while writing tests for Panelizer.
This changes the $settings+= logic to handle the 'body' field after the language is defined.
Comment #2
damienmckennaComment #3
timmillwoodSeems logical
Comment #4
damienmckennaThe patch also lets my Panelizer tests pass :-)
Comment #5
damienmckennaThis is blocking my ability to have the tests in #2136205: Use translated node's modified panel instead of the default for content type? pass correctly.
Comment #6
damienmckennaNow with tests.
Comment #8
damienmckennaIt looks like the codebase has changed significantly in D8, so this issue may not still exist there.
Comment #9
berdirThis doesn't exist in 8.x, yes.
Comment #10
damienmckennaThere are already tests in D8 in LocaleContentTest::testContentTypeDirLang() to confirm this works, so yeah, it's D7 only.
Comment #11
David_Rothstein commentedCommitted to 7.x - thanks!
I think the previous code assumed that if you were specifying a language you'd be manually specifying a body in that language also, but I agree this is better.
Minor fixes on commit:
I also wonder if this belongs more in simpletest.test than locale.test since it's testing a simpletest helper method -- although I guess it's sort of testing both that and node_save() itself, so it's OK.
Comment #13
damienmckennaThanks David_Rothstein!