Change comments in unit test to reflect patched scenario in #26339.

git-svn-id: https://develop.svn.wordpress.org/trunk@26511 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2013-12-02 00:03:39 +00:00
parent b595282dff
commit 8a10f4a942
1 changed files with 4 additions and 2 deletions

View File

@ -87,6 +87,9 @@ class Tests_Term extends WP_UnitTestCase {
$this->assertTrue( wp_delete_term($t['term_id'], $this->taxonomy) );
}
/**
* @ticket 26339
*/
function test_get_object_terms() {
$post_id = $this->factory->post->create();
$terms_1 = array('foo', 'bar', 'baz');
@ -101,9 +104,8 @@ class Tests_Term extends WP_UnitTestCase {
}
function filter_get_object_terms( $terms ) {
// var_dump reveals an array of objects
$term_ids = wp_list_pluck( $terms, 'term_id' );
// last term is now an integer
// all terms should still be objects
return $terms;
}