Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
11 Mar 2011 at 21:48 UTC
Updated:
29 Jul 2014 at 19:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
loganfsmyth commentedHere's my patch.
Comment #2
naxoc commentedThis is still an issue in D8. The
$url_targetvariable never gets set if there is something wrong with the link.Comment #3
xjmTagging for backport.
Comment #4
xjmI think if the link is not found, there should probably be an assertion failure explicitly stating it was not found.
Comment #5
xjmComment #6
kid_icarus commentedIs it still considered backporting if you go from 7.x to 8.x?
As far as a test goes, I was working on one over at #1452896: PHP notice in clickLink if link does not exist but I was having trouble with the logic. I'll give it another shot but, perhaps this patch will give me more to work with :)
Comment #7
freblasty commentedPicking this up for the office hours sprint.
Comment #8
freblasty commentedWhen the assertion fails it will explicitly state that the link was not found instead of the $url_target being set to 'Not found'.
Comment #9
webchick#1452896: PHP notice in clickLink if link does not exist is technically a duplicate of this one, but it has a bit more discussion + an automated test, so unfortunately I'm closing this one. So sorry! Please feel free to head over there if you're keen to continue working on this. :)