Remove failing unit test for #27193.

This ticket was closed as invalid, so we no longer need this test.

git-svn-id: https://develop.svn.wordpress.org/trunk@29979 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2014-10-21 13:40:27 +00:00
parent 8288e31417
commit dc141fc510
1 changed files with 0 additions and 39 deletions

View File

@ -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
*/