Index: wp-testcase/test_user.php
===================================================================
--- wp-testcase/test_user.php	(revision 711)
+++ wp-testcase/test_user.php	(working copy)
@@ -439,6 +439,53 @@
 
 		wp_delete_post( $post_id, true );
 	}
+
+	function test_delete_user() {
+		$user_id = $this->_make_user('author');
+		$user = new WP_User( $user_id );
+
+		$post = array(
+			'post_author' => $user_id,
+			'post_status' => 'publish',
+			'post_content' => rand_str(),
+			'post_title' => rand_str(),
+			'post_type' => 'post',
+		);
+
+		// insert a post and make sure the ID is ok
+		$post_id = wp_insert_post($post);
+		$this->assertTrue(is_numeric($post_id));
+		$this->assertTrue($post_id > 0);
+
+		$post = get_post( $post_id );
+		$this->assertEquals( $post_id, $post->ID );
+
+		$post = array(
+			'post_author' => $user_id,
+			'post_status' => 'publish',
+			'post_content' => rand_str(),
+			'post_title' => rand_str(),
+			'post_type' => 'nav_menu_item',
+		);
+
+		// insert a post and make sure the ID is ok
+		$nav_id = wp_insert_post($post);
+		$this->assertTrue(is_numeric($nav_id));
+		$this->assertTrue($nav_id > 0);
+
+		$post = get_post( $nav_id );
+		$this->assertEquals( $nav_id, $post->ID );
+
+		wp_delete_user( $user_id );
+		$user = new WP_User( $user_id );
+		$this->assertFalse( $user->exists() );
+
+		$this->assertNull( get_post( $post_id ) );
+		// nav_menu_item is delete_with_user = false so the nav post should remain.
+		$this->assertNotNull( get_post( $nav_id ) );
+		wp_delete_post( $nav_id, true );
+		$this->assertNull( get_post( $nav_id ) );
+	}
 }
 
 ?>
