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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

a_c_m’s picture

Small patch to fix the above problem.

a_c_m’s picture

Status: Active » Needs review
a_c_m’s picture

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

Well, yes. RTBC :) We can't test the tests, so...

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.