$this->pass(t('Node '.$number.' doesn\'t have outline.'));
$this->pass(format_string('Node %number does not have outline.',array('%number'=>$number)));
}
// Check previous, up, and next links.
if($previous){
$this->assertRaw(l('‹ '.$previous->title,'node/'.$previous->nid,array('attributes'=>array('class'=>array('page-previous'),'title'=>t('Go to previous page')))),t('Previous page link found.'));
$this->assertRaw(l('‹ '.$previous->title,'node/'.$previous->nid,array('attributes'=>array('class'=>array('page-previous'),'title'=>t('Go to previous page')))),'Previous page link found.');
}
if($up){
$this->assertRaw(l('up','node/'.$up->nid,array('attributes'=>array('class'=>array('page-up'),'title'=>t('Go to parent page')))),t('Up page link found.'));
$this->assertRaw(l('up','node/'.$up->nid,array('attributes'=>array('class'=>array('page-up'),'title'=>t('Go to parent page')))),'Up page link found.');
}
if($next){
$this->assertRaw(l($next->title.' ›','node/'.$next->nid,array('attributes'=>array('class'=>array('page-next'),'title'=>t('Go to next page')))),t('Next page link found.'));
$this->assertRaw(l($next->title.' ›','node/'.$next->nid,array('attributes'=>array('class'=>array('page-next'),'title'=>t('Go to next page')))),'Next page link found.');
}
// Compute the expected breadcrumb.
...
...
@@ -163,12 +163,12 @@ class BookTestCase extends DrupalWebTestCase {
}
// Compare expected and got breadcrumbs.
$this->assertIdentical($expected_breadcrumb,$got_breadcrumb,t('The breadcrumb is correctly displayed on the page.'));
$this->assertIdentical($expected_breadcrumb,$got_breadcrumb,'The breadcrumb is correctly displayed on the page.');
// Check printer friendly version.
$this->drupalGet('book/export/html/'.$node->nid);
$this->assertText($node->title,t('Printer friendly title found.'));
$this->assertRaw(check_markup($node->body[LANGUAGE_NONE][0]['value'],$node->body[LANGUAGE_NONE][0]['format']),t('Printer friendly body found.'));
$this->assertText($node->title,'Printer friendly title found.');
$this->assertRaw(check_markup($node->body[LANGUAGE_NONE][0]['value'],$node->body[LANGUAGE_NONE][0]['format']),'Printer friendly body found.');
$number++;
}
...
...
@@ -216,7 +216,7 @@ class BookTestCase extends DrupalWebTestCase {
$this->assertNotNull(($node===FALSE?NULL:$node),t('Book node found in database.'));
$this->assertNotNull(($node===FALSE?NULL:$node),'Book node found in database.');
$number++;
return$node;
...
...
@@ -236,28 +236,28 @@ class BookTestCase extends DrupalWebTestCase {
// Make sure each part of the book is there.
foreach($nodesas$node){
$this->assertText($node->title,t('Node title found in printer friendly version.'));
$this->assertRaw(check_markup($node->body[LANGUAGE_NONE][0]['value'],$node->body[LANGUAGE_NONE][0]['format']),t('Node body found in printer friendly version.'));
$this->assertText($node->title,'Node title found in printer friendly version.');
$this->assertRaw(check_markup($node->body[LANGUAGE_NONE][0]['value'],$node->body[LANGUAGE_NONE][0]['format']),'Node body found in printer friendly version.');
}
// Make sure we can't export an unsupported format.