Index: tests/phpunit/tests/user/author.php
===================================================================
--- tests/phpunit/tests/user/author.php	(revision 31092)
+++ tests/phpunit/tests/user/author.php	(working copy)
@@ -81,5 +81,17 @@
 		$this->assertEquals( 0, get_the_author_posts() );
 		$GLOBALS['post'] = $this->post_id;
 		$this->assertEquals( 1, get_the_author_posts() );
+
+		/**
+		 * @ticket 30904
+		 */
+		register_post_type( 'wptests_pt' );
+		$cpt_ids = $this->factory->post->create_many( 2, array(
+			'post_author' => $this->author_id,
+			'post_type'   => 'wptests_pt',
+		) );
+		$GLOBALS['post'] = $cpt_ids[0];
+		$this->assertEquals(2, get_the_author_posts() );
+		_unregister_post_type( 'wptests_pt' );
 	}
 }
