Skip to content

Commit 18cdae1

Browse files
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/5.0@47489 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a7b2a8d commit 18cdae1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/phpunit/tests/term.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,6 @@ function test_sanitize_term_field() {
184184
$this->assertEquals( 0, sanitize_term_field( 'parent', '', $term['term_id'], $this->taxonomy, 'raw' ) );
185185
}
186186

187-
private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
188-
$assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
189-
'fields' => 'ids'
190-
) );
191-
192-
$this->assertEquals( $expected_term_ids, $assigned_term_ids );
193-
}
194-
195187
/**
196188
* @ticket 19205
197189
*/

0 commit comments

Comments
 (0)