$this->assertRaw($default_output,t('Image linked to file formatter displaying correctly on full node view.'));
// Verify that the image can be downloaded.
$this->assertEqual(file_get_contents($test_image->uri),$this->drupalGet(file_create_url($image_uri)),t('File was downloaded successfully.'));
if($scheme=='private'){
// Only verify HTTP headers when using private scheme and the headers are
// sent by Drupal.
$this->assertEqual($this->drupalGetHeader('Content-Type'),'image/png; name="'.$test_image->filename.'"',t('Content-Type header was sent.'));
$this->assertEqual($this->drupalGetHeader('Content-Disposition'),'inline; filename="'.$test_image->filename.'"',t('Content-Disposition header was sent.'));
$this->assertEqual($this->drupalGetHeader('Cache-Control'),'private',t('Cache-Control header was sent.'));
// Log out and try to access the file.
$this->drupalLogout();
$this->drupalGet(file_create_url($image_uri));
$this->assertResponse('403',t('Access denied to original image as anonymous user.'));