WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/22/2020 02:29:03 PM (14 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/tests/phpunit/tests/term.php

    r31378 r47489  
    16011601    }
    16021602
    1603     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    1604         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    1605             'fields' => 'ids'
    1606         ) );
    1607 
    1608         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    1609     }
    1610 
    16111603    /**
    16121604     * @ticket 22560
Note: See TracChangeset for help on using the changeset viewer.