From a879500a898352d4c9ff4d881b3293b2dab62925 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 22 Mar 2020 14:29:03 +0000 Subject: [PATCH] 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.1@47489 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/term.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/phpunit/tests/term.php b/tests/phpunit/tests/term.php index 0ab90d8189..ea0ec102ce 100644 --- a/tests/phpunit/tests/term.php +++ b/tests/phpunit/tests/term.php @@ -194,18 +194,6 @@ class Tests_Term extends WP_UnitTestCase { $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 19205 */