Use assertEqualSets() for a few taxonomy-related tests.
assertEquals() was causing problems in environments where the tests take more than one second to run, thereby causing results to be returned in the incorrect order. git-svn-id: https://develop.svn.wordpress.org/trunk@29888 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0b05366c6f
commit
1fcb79f008
@ -1459,7 +1459,7 @@ class Tests_Post_Query extends WP_UnitTestCase {
|
|||||||
),
|
),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$this->assertEquals( array( $p1, $p2 ), $q->posts );
|
$this->assertEqualSets( array( $p1, $p2 ), $q->posts );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1502,7 +1502,7 @@ class Tests_Post_Query extends WP_UnitTestCase {
|
|||||||
),
|
),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$this->assertEquals( array( $p1, $p2 ), $q->posts );
|
$this->assertEqualSets( array( $p1, $p2 ), $q->posts );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1780,7 +1780,7 @@ class Tests_Post_Query extends WP_UnitTestCase {
|
|||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$ids = $query->get_posts();
|
$ids = $query->get_posts();
|
||||||
$this->assertEquals( array( $post_id1, $post_id2 ), $ids );
|
$this->assertEqualSets( array( $post_id1, $post_id2 ), $ids );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user