diff --git tests/phpunit/tests/admin/includesPost.php tests/phpunit/tests/admin/includesPost.php
index f2df065..f9fc502 100644
--- tests/phpunit/tests/admin/includesPost.php
+++ tests/phpunit/tests/admin/includesPost.php
@@ -658,4 +658,31 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( $p, post_exists( $title, $content, $date ) );
 	}
 
+	/**
+	 * @ticket 37406
+	 */
+	public function test_post_exists_should_support_post_type() {
+		$title = 'Foo Bar';
+		$post_type = 'page';
+		$post_id = self::factory()->post->create( array(
+			'post_title'	=> $title,
+			'post_type'	=> $post_type,
+		) );
+
+		$this->assertSame( $post_id, post_exists( $title, null, null, $post_type ) );
+	}
+
+	/**
+	 * @ticket 37406
+	 */
+	public function test_post_exists_should_not_match_a_page_for_post() {
+		$title = 'Foo Bar';
+		$post_type = 'page';
+		$post_id = self::factory()->post->create( array(
+			'post_title'	=> $title,
+			'post_type'	=> $post_type,
+		) );
+
+		$this->assertNotSame( $post_id, post_exists( $title, null, null, 'post' ) );
+	}
 }
