Index: modules/image/image.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/image/image.test,v
retrieving revision 1.13
diff -u -p -r1.13 image.test
--- modules/image/image.test	10 Dec 2009 15:39:43 -0000	1.13
+++ modules/image/image.test	8 Jan 2010 23:15:08 -0000
@@ -505,3 +505,36 @@ class ImageAdminStylesUnitTest extends D
   }
 
 }
+
+/**
+ * This class provides methods specifically for testing images in the default article content type
+ */
+class ImageFieldTestCase extends FileFieldTestCase {
+ 
+  public static function getInfo() {
+    return array(
+      'name' => 'Default Image field test',
+      'description' => 'Test creating an Image with the default Article image field.',
+      'group' => 'Image',
+    );
+  }
+ 
+  /**
+   * Test image is added and displayed correctly on an Article
+   */
+  function testNodeDisplay() {
+    $type_name = 'article';
+    $field_name = 'field_image';
+    $test_file = $this->getTestFile('image');
+
+    $nid = $this->uploadNodeFile($test_file, $field_name, $type_name);
+
+    // Check that the image is displaying with the node in the default style.
+    $this->drupalGet('node/' . $nid);
+    $node = node_load($nid, NULL, TRUE);
+    $this->assertTrue($node->{$field_name}[LANGUAGE_NONE][0]['fid'] > 0, t('File uploaded.'));
+    $file_uri = $node->{$field_name}[LANGUAGE_NONE][0]['uri'];
+    $default_output = theme('image_style', array('style_name' => 'large', 'path' =>  $file_uri ));
+    $this->assertRaw($default_output, t('Image style displaying correctly on full node view.'));
+  }
+}
