Quantcast
Viewing all articles
Browse latest Browse all 293292

Check for URL's absence will always pass due to wrong var name

Currently :

<?php
  $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.


Viewing all articles
Browse latest Browse all 293292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>