diff --git a/tests/phpunit/tests/post/query.php b/tests/phpunit/tests/post/query.php index d5d16a4e6f..723d0613fa 100644 --- a/tests/phpunit/tests/post/query.php +++ b/tests/phpunit/tests/post/query.php @@ -2629,45 +2629,6 @@ class Tests_Post_Query extends WP_UnitTestCase { $this->assertEquals( array( $image_id ), $posts ); } - /** - * @ticket 27193 - * @group taxonomy - */ - function test_cat_or_tag() { - $category1 = $this->factory->term->create( array( 'taxonomy' => 'category', 'name' => 'alpha' ) ); - $category2 = $this->factory->term->create( array( 'taxonomy' => 'category', 'name' => 'beta' ) ); - - $tag1 = $this->factory->term->create( array( 'taxonomy' => 'post_tag', 'name' => 'gamma' ) ); - $tag2 = $this->factory->term->create( array( 'taxonomy' => 'post_tag', 'name' => 'delta' ) ); - - $post_id1 = $this->factory->post->create( array( 'post_title' => 'alpha', 'post_category' => array( $category1 ) ) ); - $terms1 = get_the_category( $post_id1 ); - $this->assertEquals( array( get_category( $category1 ) ), $terms1 ); - - $post_id2 = $this->factory->post->create( array( 'post_title' => 'beta', 'post_category' => array( $category2 ) ) ); - $terms2 = get_the_category( $post_id2 ); - $this->assertEquals( array( get_category( $category2 ) ), $terms2 ); - - $post_id3 = $this->factory->post->create( array( 'post_title' => 'gamma', 'post_tag' => array( $tag1 ) ) ); - $post_id4 = $this->factory->post->create( array( 'post_title' => 'delta', 'post_tag' => array( $tag2 ) ) ); - - $query = new WP_Query( array( - 'fields' => 'ids', - 'update_post_meta_cache' => false, - 'update_post_term_cache' => false, - 'tax_query' => array( - //'relation' => 'OR', - array( - 'taxonomy' => 'category', - 'field' => 'term_id', - 'terms' => array( $category1, $category2 ) - ) - ) - ) ); - $ids = $query->get_posts(); - $this->assertEqualSets( array( $post_id1, $post_id2 ), $ids ); - } - /** * @group taxonomy */