Index: tests/phpunit/tests/taxonomy.php
===================================================================
--- tests/phpunit/tests/taxonomy.php	(revision 31286)
+++ tests/phpunit/tests/taxonomy.php	(working copy)
@@ -361,4 +361,17 @@
 		$this->assertEqualSets( array( $t1 ), get_ancestors( $t2, 'wptests_conflict' ) );
 		_unregister_post_type( 'wptests_pt' );
 	}
+
+	function test_get_terms_before_after_cache() {
+
+		$post_id = $this->factory->post->create();
+
+		$fresh_terms = get_the_terms( $post_id, 'category' );
+		wp_cache_init();
+		update_object_term_cache( $post_id, 'post' );
+		$cached_terms = get_the_terms( $post_id, 'category' );
+		$this->assertEquals( $fresh_terms, $cached_terms );
+
+	}
+
 }
