Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently :
$edit_links = $this->xpath('//a[@href=:href]', array(
':href' => url('admin/structure/contact/manage/personal')
));
$this->assertTrue(empty($links), format_string('No link containing href %href found.',
array('%href' => 'admin/structure/contact/manage/personal')
));
$links
is never defined, so will always be empty.
Comment | File | Size | Author |
---|---|---|---|
#3 | contact-url-check-fix-2031211-2.patch | 1.12 KB | a_c_m |
#1 | contact-url-check-fix-2031211.patch | 866 bytes | a_c_m |
Comments
Comment #1
a_c_m CreditAttribution: a_c_m commentedSmall patch to fix the above problem.
Comment #2
a_c_m CreditAttribution: a_c_m commentedComment #3
a_c_m CreditAttribution: a_c_m commentedUpdated patch to reference parent issue : #2031223: Add linkByHrefExistsExact and linkByHrefNotExistsExact for matching links by href exactly
Comment #4
BerdirWell, yes. RTBC :) We can't test the tests, so...
Comment #5
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks!