Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2019 at 09:47 UTC
Updated:
29 Nov 2019 at 11:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hoanns commentedDoes it test now or what is happening
Comment #3
hoanns commentedComment #4
joachim commentedLooks good to me.
Comment #6
hoanns commentedComment #7
alexpottThanks for filing this bug report and for fixing it. Bug fixing is very valuable. However in order to commit a bug fix we need an automated to test to prove that we've fixed the bug and ensure that we don't break it again in the future. For more information about writing tests in Drupal 8 see the following links:
Comment #8
alexpottComment #9
hoanns commentedComment #10
hoanns commentedComment #11
hoanns commentedOk test added
Comment #12
hoanns commentedComment #13
hoanns commentedComment #14
borisson_I found a nitpick, that should be fixed before we can get this in. Overall this looks really good and I think when this small change is done we can mark this RTBC.
Should be
$this->t()instead of the deprecatedt().Comment #15
hoanns commentedI found 0 occurences of $this->t() in the KernelTests, but 67 occurences of t(). So if this is a valid nitpick it should be adressed in a new issue. I just copied the code style from the existing class.
Comment #16
borisson_You are right! In theory this doesn't need to be
tbecause it doesn't the translatability aspect of it.Comment #17
alexpottCan we change this to...
Comment #18
yogeshmpawarComment #19
hoanns commentedYou are using assertEquals instead of assertEqual, thats why you think the arguments were in the wrong order. Because these 2 methods somehow have a different order of arguments.
Comment #20
yogeshmpawarAgreed with @alexpott & comments addressed in the updated patch. Also, resolved some small nitpicks & added an interdiff.
Comment #21
hoanns commentedBut you only changed the first occurence of the bad code
Comment #22
hoanns commentedHere I removed all the critiqued occurences
Comment #23
hoanns commentedComment #25
hoanns commentedOf course I did a fucky wucky too
Comment #26
hoanns commentedComment #27
hoanns commentedComment #28
hoanns commentedWill this ever be added? it's pretty simple
Comment #29
borisson_I think the latest version of this patch looks good - the remarks made by @alexpott have been resolved, this being a bug-fix it probably still is set to the right version.
Comment #31
alexpottCommitted and pushed f66921a662 to 9.0.x and b3b6a681de to 8.9.x. Thanks!
As a bugfix going to talk to other committers about backport to 8.8.x
Comment #35
alexpott@catch +1'd the backport