$this->assertText($node->label(),'Printer friendly title found.');
$this->assertRaw(check_markup($node->body[Language::LANGCODE_NOT_SPECIFIED][0]['value'],$node->body[Language::LANGCODE_NOT_SPECIFIED][0]['format']),'Printer friendly body found.');
$this->assertRaw($node->body->processed,'Printer friendly body found.');
$number++;
}
...
...
@@ -281,7 +281,7 @@ function testBookExport() {
// Make sure each part of the book is there.
foreach($nodesas$node){
$this->assertText($node->label(),'Node title found in printer friendly version.');
$this->assertRaw(check_markup($node->body[Language::LANGCODE_NOT_SPECIFIED][0]['value'],$node->body[Language::LANGCODE_NOT_SPECIFIED][0]['format']),'Node body found in printer friendly version.');
$this->assertRaw($node->body->processed,'Node body found in printer friendly version.');
}
// Make sure we can't export an unsupported format.
@@ -1072,7 +1072,7 @@ function comment_form_node_form_alter(&$form, $form_state) {
'#weight'=>30,
);
$comment_count=$node->id()?db_query('SELECT comment_count FROM {node_comment_statistics} WHERE nid = :nid',array(':nid'=>$node->id()))->fetchField():0;
@@ -113,7 +113,7 @@ public function testAutoCreate() {
$referencing_nid=key($result);
$referencing_node=node_load($referencing_nid);
$this->assertEqual($referenced_nid,$referencing_node->test_field[Language::LANGCODE_NOT_SPECIFIED][0]['target_id'],'Newly created node is referenced from the referencing node.');
$this->assertEqual($referenced_nid,$referencing_node->test_field->target_id,'Newly created node is referenced from the referencing node.');
// Now try to view the node and check that the referenced node is shown.
$this->assertPathMatch('public://'.$test_file->getFilename(),$node_file->getFileUri(),format_string('The file %file was uploaded to the correct path.',array('%file'=>$node_file->getFileUri())));
// Change the path to contain multiple subdirectories.
...
...
@@ -46,7 +46,7 @@ function testUploadPath() {
// Check that the file was uploaded into the subdirectory.
$this->assertPathMatch('public://foo/bar/baz/'.$test_file->getFilename(),$node_file->getFileUri(),format_string('The file %file was uploaded to the correct path.',array('%file'=>$node_file->getFileUri())));
// Check the path when used with tokens.
...
...
@@ -58,7 +58,7 @@ function testUploadPath() {
// Check that the file was uploaded into the subdirectory.
$this->assertFileExists($node_file,format_string('File exists after uploading a file (%filesize) under the max limit (%maxsize).',array('%filesize'=>format_size($small_file->getSize()),'%maxsize'=>$max_filesize)));
$this->assertFileEntryExists($node_file,format_string('File entry exists after uploading a file (%filesize) under the max limit (%maxsize).',array('%filesize'=>format_size($small_file->getSize()),'%maxsize'=>$max_filesize)));
$this->assertFileExists($node_file,format_string('File exists after uploading a file (%filesize) with no max limit.',array('%filesize'=>format_size($large_file->getSize()))));
$this->assertFileEntryExists($node_file,format_string('File entry exists after uploading a file (%filesize) with no max limit.',array('%filesize'=>format_size($large_file->getSize()))));
}
...
...
@@ -131,7 +131,7 @@ function testFileExtension() {
// Check that the file can be uploaded with no extension checking.