Index: passedPost.php
===================================================================
--- passedPost.php	(nonexistent)
+++ passedPost.php	(working copy)
@@ -0,0 +1,106 @@
+<?php
+
+/**
+ * @group attachment
+ * @ticket 37255
+ */
+class Tests_Attachment_PassedPost extends WP_UnitTestCase {
+	protected static $a;
+	protected static $a_id;
+
+	public static function wpSetUpBeforeClass() {
+		self::$a_id = self::factory()->attachment->create_upload_object( DIR_TESTDATA . '/images/a2-small.jpg' );
+		self::$a = get_post( self::$a_id );
+	}
+
+	public function test_wp_get_attachment_url_should_accept_post_id() {
+		$str = wp_get_attachment_url( self::$a_id );
+		$this->assertNotEmpty( $str );
+	}
+
+	public function test_wp_get_attachment_url_should_accept_post_object() {
+		$str = wp_get_attachment_url( self::$a );
+		$this->assertNotEmpty( $str );
+	}
+
+	public function test_image_downsize_should_accept_post_id() {
+		$arr = image_downsize( self::$a_id );
+		$this->assertNotEmpty( $arr );
+	}
+
+	public function test_image_downsize_should_accept_post_object() {
+		$arr = image_downsize( self::$a );
+		$this->assertNotEmpty( $arr );
+	}
+
+	public function test_get_image_tag_should_accept_post_id() {
+		$html = get_image_tag( self::$a_id, 'foo', 'bar', 'center' );
+		$this->assertNotEmpty( $html );
+	}
+
+	public function test_get_image_tag_should_accept_post_object() {
+		$html = get_image_tag( self::$a, 'foo', 'bar', 'center' );
+		$this->assertNotEmpty( $html );
+	}
+
+	public function test_image_get_intermediate_size_should_accept_post_id() {
+		$arr = image_get_intermediate_size( self::$a_id );
+		$this->assertNotEmpty( $arr );
+	}
+
+	public function test_image_get_intermediate_size_should_accept_post_object() {
+		$arr = image_get_intermediate_size( self::$a );
+		$this->assertNotEmpty( $arr );
+	}
+
+	public function test_wp_get_attachment_image_src_should_accept_post_id() {
+		$arr = wp_get_attachment_image_src( self::$a_id );
+		$this->assertNotEmpty( $arr );
+	}
+
+	public function test_wp_get_attachment_image_src_should_accept_post_object() {
+		$arr = wp_get_attachment_image_src( self::$a );
+		$this->assertNotEmpty( $arr );
+	}
+
+	public function test_wp_get_attachment_image_should_accept_post_id() {
+		$html = wp_get_attachment_image( self::$a_id );
+		$this->assertNotEmpty( $html );
+	}
+
+	public function test_wp_get_attachment_image_should_accept_post_object() {
+		$html = wp_get_attachment_image( self::$a );
+		$this->assertNotEmpty( $html );
+	}
+
+	public function test_wp_get_attachment_image_url_should_accept_post_id() {
+		$str = wp_get_attachment_image_url( self::$a_id );
+		$this->assertNotEmpty( $str );
+	}
+
+	public function test_wp_get_attachment_image_url_should_accept_post_object() {
+		$str = wp_get_attachment_image_url( self::$a );
+		$this->assertNotEmpty( $str );
+	}
+
+	public function test_wp_get_attachment_image_srcset_should_accept_post_id() {
+		$str = wp_get_attachment_image_srcset( self::$a_id );
+		$this->assertNotEmpty( $str );
+	}
+
+	public function test_wp_get_attachment_image_srcset_should_accept_post_object() {
+		$str = wp_get_attachment_image_srcset( self::$a );
+		$this->assertNotEmpty( $str );
+	}
+
+	public function test_wp_get_attachment_image_sizes_should_accept_post_id() {
+		$str = wp_get_attachment_image_sizes( self::$a_id );
+		$this->assertNotEmpty( $str );
+	}
+
+	public function test_wp_get_attachment_image_sizes_should_accept_post_object() {
+		$str = wp_get_attachment_image_sizes( self::$a );
+		$this->assertNotEmpty( $str );
+	}
+
+}
\ No newline at end of file
