Index: tests/phpunit/tests/query.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/query.php	(revision 32711)
+++ tests/phpunit/tests/query.php	(revision )
@@ -133,4 +133,78 @@
 
 		$this->assertContains( "ORDER BY $wpdb->posts.post_title DESC, $wpdb->posts.post_date DESC", $q->request );
 	}
+
+	/**
+	 * @ticket 32454
+	 */
+	public function test_querystring_query_taxonomy_term_single() {
+		register_taxonomy( 'test_tax_cat', 'post' );
+		
+		wp_insert_term( "test1", 'test_tax_cat' );
+		wp_insert_term( "test2", 'test_tax_cat' );
+		wp_insert_term( "test3", 'test_tax_cat' );
+
+		$p1 = $this->factory->post->create();
+		$p2 = $this->factory->post->create();
+		$p3 = $this->factory->post->create();
+
+		wp_set_object_terms( $p1, "test1", 'test_tax_cat' );
+		wp_set_object_terms( $p2, array( "test1", "test2" ), 'test_tax_cat' );
+		wp_set_object_terms( $p3, "test2", 'test_tax_cat' );
+
+		$url = add_query_arg(
+			array(
+				'test_tax_cat' => 'test1',
+			), '/'
+		);
+		
+		$this->go_to( $url );
+		
+		$q = $GLOBALS['wp_query'];
+		$posts = array();
+		
+		foreach ( $q->posts as $post ) {
+			$posts[] = $post->ID;
+		}
+		
+		$this->assertEquals( array( $p1, $p2), $posts );
+	}
+
+	/**
+	 * @ticket 32454
+	 */
+	public function test_querystring_query_taxonomy_term_multiple() {
+		register_taxonomy( 'test_tax_cat', 'post' );
+
+		wp_insert_term( "test1", 'test_tax_cat' );
+		wp_insert_term( "test2", 'test_tax_cat' );
+		wp_insert_term( "test3", 'test_tax_cat' );
+
+		$p1 = $this->factory->post->create();
+		$p2 = $this->factory->post->create();
+		$p3 = $this->factory->post->create();
+		$p4 = $this->factory->post->create();
+
+		wp_set_object_terms( $p1, "test1", 'test_tax_cat' );
+		wp_set_object_terms( $p2, array( "test1", "test2" ), 'test_tax_cat' );
+		wp_set_object_terms( $p3, "test2", 'test_tax_cat' );
+		wp_set_object_terms( $p4, "test3", 'test_tax_cat' );
+
+		$url = add_query_arg(
+			array(
+				'test_tax_cat' => array('test1','test2'),
+			), '/'
+		);
+		
+		$this->go_to( $url );
+
+		$q = $GLOBALS['wp_query'];
+		$posts = array();
+
+		foreach ( $q->posts as $post ) {
+			$posts[] = $post->ID;
+		}
+
+		$this->assertEquals( array( $p1, $p2, $p3), $posts );
+	}
 }
