~davidstrauss/drupal/195416-per-connection-prefixes

« back to all changes in this revision

Viewing changes to modules/simpletest/drupal_web_test_case.php

  • Committer: David Strauss
  • Date: 2009-10-13 05:21:28 UTC
  • Revision ID: david@fourkitchens.com-20091013052128-fz89p23b8zcpm4q7
RemoveĀ junkĀ output

Show diffs side-by-side

added added

removed removed

Lines of Context:
1725
1725
  protected function assertLink($label, $index = 0, $message = '', $group = 'Other') {
1726
1726
    $links = $this->xpath('//a[text()="' . $label . '"]');
1727
1727
    $message = ($message ?  $message : t('Link with label %label found.', array('%label' => $label)));
1728
 
    
1729
 
    if (!isset($links[$index])) {
1730
 
      die($label . ': ' . check_plain($this->content));
1731
 
    }
1732
 
    
1733
1728
    return $this->assert(isset($links[$index]), $message, $group);
1734
1729
  }
1735
1730