Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
media system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Jul 2018 at 22:37 UTC
Updated:
7 Aug 2018 at 13:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
msankhala commentedHere is the patch which replaces assertEquals with assertSame in MediaSourceTest.
Comment #4
marcoscanoI guess when it's a translated text we would want to either keep using assertEquals() or to cast the translated text into a string.
Comment #5
pguillard commentedI guess this is more lisible to keep assertEquals()
So we get a mix of the two...
Comment #6
seanbAdded back some places where we could still use assertSame in
Drupal\Tests\media\Kernel\MediaSourceTest. And why not fix it in other tests as well while we're at it.Comment #7
seanbI did not mean to upload 2 versions of the patch with the same name, sorry about that!
Comment #9
pguillard commentedLast failing test solved
Comment #10
phenaproximaGlorious. Thanks!
Comment #11
xjmI reviewed the patch and scope with a
git diff --staged --color-words.Committed and pushed to 8.6.x. Thanks!
The patch doesn't cherry-pick cleanly to 8.5.x. Should we create an 8.5.x version, to minimize merge conflicts in backports?
Comment #13
dinesh18 commentedHere is the patch for 8.5.x version.
Comment #15
seanbNot sure if we should actually focus our energy on backporting this with 8.6 already in the alpha phase. Let's just close this.