Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
block_content.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Nov 2014 at 04:17 UTC
Updated:
5 Mar 2015 at 13:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yesct commentedComment #2
mglamanPatch with changes.
Comment #4
mglamanFix entity cache before checking revision for test.
Comment #5
mglamanAttaching interdiff!
Comment #6
yesct commentedThanks for the interdiff. :)
1.
Why did we need to clear the cache using the static load()? and we didn't using the entity_load_multiple()?
was that what the TRUE was doing? ah yes. ok.
2.
This blank line should not have been removed.
We have a blank line between the name space and the block of use statements (although I couldn't find that in the OO white space standards... https://www.drupal.org/node/608152 )
Comment #7
mglamanCorrect - you can't call reset within load anymore, so we have to tell the entity storage to reset the entity cache.
Attached updated patch to fix up my screwy line spacing on BlockContentTypeTest.
Comment #10
pcambraRe-rolled and added a couple more loads that were introduced since #7
Comment #11
berdirMoving this to the right component :) (Which has the wrong name...)
Comment #12
chanderbhushan commented#10 applying successfully
Comment #13
gaurav_varshney commented#10 Patch Applied Successfully
Comment #14
webchickComment #15
linl commentedReroll following #2345833: Convert assetEqual to assertIdentical in migrate_drupal and #2403105: Add an empty text on "Add Custom Block" page when no custom block types are available
Comment #16
linl commentedAlso noticed a couple of namespace spacing issues.
Comment #17
jeroentNitpick, sort use statements alphabetical.
Comment #18
jeroentGo testbot!
Comment #19
jeroentNo occurrences of entity_load('block_content') and entity_load_multiple('block_content') left and tests pass.
Marking as RTBC as the only thing I did was rearrange the use statements.
Comment #20
alexpottAll of these should have the block content storage injected.
Comment #21
jeroentInjected the block content storage in BlockContent and BlockContentForm class.
Comment #23
jeroent.
Comment #25
jeroentThis should fix the failing tests.
Comment #26
pcambraPatch looks fine and there are no other entity_load('block_content') or entity_load_multiple('block_content') left.
Comment #27
alexpottCommitted 3f7f953 and pushed to 8.0.x. Thanks!
Beta evaluation is in the meta issue.