WordPress.org

Make WordPress Core

Changeset 47489


Ignore:
Timestamp:
03/22/2020 02:29:03 PM (6 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
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/3.7/tests/phpunit/tests/term.php

    r47343 r47489  
    388388    }
    389389
    390     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    391         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    392             'fields' => 'ids'
    393         ) );
    394 
    395         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    396     }
    397 
    398390    function test_wp_set_post_categories() {
    399391        $post_id = $this->factory->post->create();
  • branches/3.8

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

    r47338 r47489  
    443443    }
    444444
    445     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    446         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    447             'fields' => 'ids'
    448         ) );
    449 
    450         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    451     }
    452 
    453445    function test_wp_set_post_categories() {
    454446        $post_id = $this->factory->post->create();
  • branches/3.9

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

    r47329 r47489  
    443443    }
    444444
    445     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    446         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    447             'fields' => 'ids'
    448         ) );
    449 
    450         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    451     }
    452 
    453445    /**
    454446     * @ticket 24189
  • branches/4.0

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

    r40446 r47489  
    583583    }
    584584
    585     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    586         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    587             'fields' => 'ids'
    588         ) );
    589 
    590         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    591     }
    592 
    593585    /**
    594586     * @ticket 22560
  • 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
  • branches/4.2

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

    r31812 r47489  
    528528    }
    529529
    530     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    531         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    532             'fields' => 'ids'
    533         ) );
    534 
    535         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    536     }
    537 
    538530    /**
    539531     * @ticket 22560
  • branches/4.3

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

    r32507 r47489  
    484484    }
    485485
    486     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    487         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    488             'fields' => 'ids'
    489         ) );
    490 
    491         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    492     }
    493 
    494486    /**
    495487     * @ticket 22560
  • branches/4.4

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

    r37643 r47489  
    484484    }
    485485
    486     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    487         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    488             'fields' => 'ids'
    489         ) );
    490 
    491         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    492     }
    493 
    494486    /**
    495487     * @ticket 22560
  • branches/4.5

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

    r36056 r47489  
    484484    }
    485485
    486     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    487         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    488             'fields' => 'ids'
    489         ) );
    490 
    491         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    492     }
    493 
    494486    /**
    495487     * @ticket 22560
  • branches/4.6

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

    r37644 r47489  
    191191    }
    192192
    193     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    194         $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(
    195             'fields' => 'ids'
    196         ) );
    197 
    198         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    199     }
    200 
    201193    /**
    202194     * @ticket 19205
  • branches/4.7

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

    r38398 r47489  
    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
  • branches/4.8

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

    r38398 r47489  
    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
  • branches/4.9

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

    r38398 r47489  
    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
  • branches/5.0

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

    r38398 r47489  
    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
  • branches/5.1

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

    r43571 r47489  
    195195    }
    196196
    197     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    198         $assigned_term_ids = wp_get_object_terms(
    199             $post_id,
    200             $taxonomy,
    201             array(
    202                 'fields' => 'ids',
    203             )
    204         );
    205 
    206         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    207     }
    208 
    209197    /**
    210198     * @ticket 19205
  • branches/5.2

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

    r43571 r47489  
    195195    }
    196196
    197     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    198         $assigned_term_ids = wp_get_object_terms(
    199             $post_id,
    200             $taxonomy,
    201             array(
    202                 'fields' => 'ids',
    203             )
    204         );
    205 
    206         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    207     }
    208 
    209197    /**
    210198     * @ticket 19205
  • branches/5.3

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

    r43571 r47489  
    195195    }
    196196
    197     private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    198         $assigned_term_ids = wp_get_object_terms(
    199             $post_id,
    200             $taxonomy,
    201             array(
    202                 'fields' => 'ids',
    203             )
    204         );
    205 
    206         $this->assertEquals( $expected_term_ids, $assigned_term_ids );
    207     }
    208 
    209197    /**
    210198     * @ticket 19205
Note: See TracChangeset for help on using the changeset viewer.