Commit 000d51e7 authored by Dries's avatar Dries

Issue #2031211 by a_c_m: Check for URL's absence will always pass due to wrong var name.

parent e9245931
...@@ -61,10 +61,11 @@ function testSiteWideContact() { ...@@ -61,10 +61,11 @@ function testSiteWideContact() {
// User category could not be changed or deleted. // User category could not be changed or deleted.
// Cannot use ::assertNoLinkByHref as it does partial url matching and with // Cannot use ::assertNoLinkByHref as it does partial url matching and with
// field_ui enabled admin/structure/contact/manage/personal/fields exists. // field_ui enabled admin/structure/contact/manage/personal/fields exists.
// @todo: See https://drupal.org/node/2031223 for the above
$edit_link = $this->xpath('//a[@href=:href]', array( $edit_link = $this->xpath('//a[@href=:href]', array(
':href' => url('admin/structure/contact/manage/personal') ':href' => url('admin/structure/contact/manage/personal')
)); ));
$this->assertTrue(empty($links), format_string('No link containing href %href found.', $this->assertTrue(empty($edit_link), format_string('No link containing href %href found.',
array('%href' => 'admin/structure/contact/manage/personal') array('%href' => 'admin/structure/contact/manage/personal')
)); ));
$this->assertNoLinkByHref('admin/structure/contact/manage/personal/delete'); $this->assertNoLinkByHref('admin/structure/contact/manage/personal/delete');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment