Index: tests/phpunit/tests/user/author.php
===================================================================
--- tests/phpunit/tests/user/author.php	(revision 28191)
+++ tests/phpunit/tests/user/author.php	(working copy)
@@ -75,4 +75,11 @@
 		$this->assertEquals( '', get_the_author_meta( 'user_login' ) );
 		$this->assertEquals( '', get_the_author_meta( 'does_not_exist' ) );
 	}
-}
\ No newline at end of file
+
+	function test_get_the_author_posts() {
+		// Test with no global post, result should be 0 because no author is found
+		$this->assertEquals( 0, get_the_author_posts() );
+		$GLOBALS['post'] = $this->post_id;
+		$this->assertEquals( 1, get_the_author_posts() );
+	}
+}
