Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Mar 2015 at 08:30 UTC
Updated:
6 Apr 2015 at 08:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gábor hojtsyComment #2
gábor hojtsyComment #4
gábor hojtsyIt is not clear to me how to tell from the results which test fails exactly. I tried the tests listed around that fatal locally but neither failed. I don't think the code needs fixing, the test needs fixing to define what is missing.
Comment #5
gábor hojtsyDiscussed clever ways to figure out which test was that with Wim Leers and vijaycs85 and we found \Drupal\Tests\Core\Config\Entity\ConfigEntityStorageTest. That of course now needs to return English for the current language then.
Comment #6
dawehnerAh there is the issue!
Comment #7
alexpottLooks like we should have a test for this - I'm not sure that the test change actually covers the bug being fixed by the patch.
Comment #8
gábor hojtsyUpdated tests to ensure that the language default is applied based on current language.
Comment #9
gábor hojtsyComment #10
dawehnerLooks great, but some integration test would be great.
Just a comment: For future uses, you can use
->willReturn(new Language(...Comment #11
gábor hojtsyUsing willReturn() and more coverage for when you did provide a language. The change is in config entity storage, so I think it makes sense to test it there, that applies the default. This should be more complete coverage now.
Comment #12
dawehnerLooks alright for me!
Comment #13
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed be30a52 and pushed to 8.0.x. Thanks!
Comment #15
gábor hojtsyYay, thanks!