Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
shortcut.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2015 at 18:32 UTC
Updated:
1 May 2015 at 09:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
willzyx commentedComment #2
m4oliveiLooks great, tested on latest D8, patch applied clean and works as advertised. The update message shows on update now, the new message shows only when new.
@willzyx++
Comment #3
xanoNice catch! Thanks :)
Comment #4
alexpottLooks like we sh/could add an assertion somewhere for this.
Comment #5
m4oliveiSounds reasonable @alexpott. Patch attached with a couple assertions addd to look for the right message. What do you think? Totally open to critique here, I'm climbing the Drupal Ladder, and this seemed like a nice opportunity to learn some things and submit a patch.
Comment #6
willzyx commentedI do not know if this test inside a loop is a good thing. Maybe we can create a dedicated shortcut just to test the message
Comment #7
m4oliveiThat seems fair, although there are a bunch of other assertions in that loop already, doesn't seem much harm to have this in there as well. Were you thinking to create a new test case for this, to just test the message? The
testShortcutLinkAddmethod is all about operating on a list of links to create.Comment #8
jibran@willzyx I think it's not an issue. This is good to go thanks for working on this @m4olivei and @willzyx.
Comment #9
webchickHa, nice catch. That was totally wrong. :)
Looks like we have test coverage for this now too, so...
Committed and pushed to 8.0.x. Thanks!