mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Build/Test Tools: Remove unused ::assertPostHasTerms()
method from tests/term.php
.
The associated test was removed in [30241]. Merges [47341] to 3.7+ branches. See #49485. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@47489 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d581bb0953
commit
1499a3f9e3
@ -483,14 +483,6 @@ class Tests_Term extends WP_UnitTestCase {
|
|||||||
$this->assertEquals( 0, sanitize_term_field( 'parent', '', $term['term_id'], $this->taxonomy, 'raw' ) );
|
$this->assertEquals( 0, sanitize_term_field( 'parent', '', $term['term_id'], $this->taxonomy, 'raw' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
|
|
||||||
$assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
|
|
||||||
'fields' => 'ids'
|
|
||||||
) );
|
|
||||||
|
|
||||||
$this->assertEquals( $expected_term_ids, $assigned_term_ids );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ticket 22560
|
* @ticket 22560
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user