Index: tests/phpunit/tests/post/query.php
===================================================================
--- tests/phpunit/tests/post/query.php	(revision 26348)
+++ tests/phpunit/tests/post/query.php	(working copy)
@@ -631,6 +631,17 @@
 	}
 
 	/**
+	 * @ticket 24674
+	 */
+	function test_is_page() {
+		// try to fetch a page with ID 0
+		$post_0 = get_post(0);
+
+		// the page doesn't exist so is_page should return false
+		$this->assertFalse( is_page($post_0) );
+	}
+
+	/**
 	 * @ticket 22448
 	 */
 	function test_the_posts_filter() {
