diff --git a/tests/phpunit/tests/comment/query.php b/tests/phpunit/tests/comment/query.php
index 5d250ea..f344d1d 100644
--- a/tests/phpunit/tests/comment/query.php
+++ b/tests/phpunit/tests/comment/query.php
@@ -1658,22 +1658,22 @@ class Tests_Comment_Query extends WP_UnitTestCase {
 	}
 
 	/**
-	 * @ticket 22400
+	 * @ticket 35075
 	 */
-	public function test_comment_cache_key_should_ignore_custom_params() {
+	public function test_comment_cache_key_should_cache_custom_params() {
 		global $wpdb;
 
 		$p = self::factory()->post->create();
 		$c = self::factory()->comment->create( array( 'comment_post_ID' => $p ) );
 
+    $start_num = $wpdb->num_queries;
+
 		$q1 = new WP_Comment_Query();
 		$q1->query( array(
 			'post_id' => $p,
 			'fields' => 'ids',
 		) );
 
-		$num_queries = $wpdb->num_queries;
-
 		$q2 = new WP_Comment_Query();
 		$q2->query( array(
 			'post_id' => $p,
@@ -1681,7 +1681,7 @@ class Tests_Comment_Query extends WP_UnitTestCase {
 			'foo' => 'bar',
 		) );
 
-		$this->assertSame( $num_queries, $wpdb->num_queries );
+		$this->assertSame( $start_num + 2, $wpdb->num_queries );
 	}
 
 	/**
