Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
typed data system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jun 2018 at 11:23 UTC
Updated:
8 Sep 2018 at 02:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
msankhala commentedHere is the first version of the patch.
Comment #3
borisson_We should probably add a test for this as well.
Comment #4
msankhala commentedHere is updated patch with the test.
Comment #5
dawehnerIs there a reason we don't use
assertSame? This seems to make semantically more sense :)Comment #6
dawehnerThank you for working on this one.
Comment #7
msankhala commentedI just kept
testGetEntity()in consistent withtestGetValue()which does the same thing. Do you recommend changing this toassertSame()only fortestGetEntity()?Comment #8
dawehnerNo worries. I just prefer better code over consistency of bad code :(
Comment #9
msankhala commentedHere is the updated patch.
Comment #10
borisson_This looks solid now.
Comment #11
xjmThanks for the patch! Nice work @msankhala.
It's a very small addition, but I think we should probably also still add a add a change record for the addition so developers know they can use it.
Comment #12
dawehnerI added a change record
Comment #15
larowlanCommitted dd7fdb3 and pushed to 8.7.x. Thanks!
Published changed record