This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
$this->assertEqual(current($this->xpath($xpath)),$node->label(),'Node breadcrumb is equal to node title.','Node');
// Test node title in comment preview.
$this->assertEqual(current($this->xpath('//article[contains(concat(" ", normalize-space(@class), " "), :node-class)]/h2/a/span',array(':node-class'=>' node--type-'.$node->bundle().' '))),$node->label(),'Node preview title is equal to node title.','Node');
// Test node title is clickable on teaser list (/node).
$this->drupalGet('node');
$this->clickLink($node->label());
// Test edge case where node title is set to 0.
$settings=array(
'title'=>0,
);
$node=$this->drupalCreateNode($settings);
// Test that 0 appears as <title>.
$this->drupalGet('node/'.$node->id());
$this->assertTitle(0.' | Drupal','Page title is equal to 0.','Node');
// Test that 0 appears in the template <h1>.
$xpath='//h1';
$this->assertEqual(current($this->xpath($xpath)),0,'Node title is displayed as 0.','Node');