Changeset 47489
- Timestamp:
- 03/22/2020 02:29:03 PM (5 years ago)
- 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 388 388 } 389 389 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 398 390 function test_wp_set_post_categories() { 399 391 $post_id = $this->factory->post->create(); -
branches/3.8
-
branches/3.8/tests/phpunit/tests/term.php
r47338 r47489 443 443 } 444 444 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 453 445 function test_wp_set_post_categories() { 454 446 $post_id = $this->factory->post->create(); -
branches/3.9
-
branches/3.9/tests/phpunit/tests/term.php
r47329 r47489 443 443 } 444 444 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 453 445 /** 454 446 * @ticket 24189 -
branches/4.0
-
branches/4.0/tests/phpunit/tests/term.php
r40446 r47489 583 583 } 584 584 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 593 585 /** 594 586 * @ticket 22560 -
branches/4.1
-
branches/4.1/tests/phpunit/tests/term.php
r31378 r47489 1601 1601 } 1602 1602 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 1611 1603 /** 1612 1604 * @ticket 22560 -
branches/4.2
-
branches/4.2/tests/phpunit/tests/term.php
r31812 r47489 528 528 } 529 529 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 538 530 /** 539 531 * @ticket 22560 -
branches/4.3
-
branches/4.3/tests/phpunit/tests/term.php
r32507 r47489 484 484 } 485 485 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 494 486 /** 495 487 * @ticket 22560 -
branches/4.4
-
branches/4.4/tests/phpunit/tests/term.php
r37643 r47489 484 484 } 485 485 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 494 486 /** 495 487 * @ticket 22560 -
branches/4.5
-
branches/4.5/tests/phpunit/tests/term.php
r36056 r47489 484 484 } 485 485 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 494 486 /** 495 487 * @ticket 22560 -
branches/4.6
-
branches/4.6/tests/phpunit/tests/term.php
r37644 r47489 191 191 } 192 192 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 201 193 /** 202 194 * @ticket 19205 -
branches/4.7
-
branches/4.7/tests/phpunit/tests/term.php
r38398 r47489 185 185 } 186 186 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 195 187 /** 196 188 * @ticket 19205 -
branches/4.8
-
branches/4.8/tests/phpunit/tests/term.php
r38398 r47489 185 185 } 186 186 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 195 187 /** 196 188 * @ticket 19205 -
branches/4.9
-
branches/4.9/tests/phpunit/tests/term.php
r38398 r47489 185 185 } 186 186 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 195 187 /** 196 188 * @ticket 19205 -
branches/5.0
-
branches/5.0/tests/phpunit/tests/term.php
r38398 r47489 185 185 } 186 186 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 195 187 /** 196 188 * @ticket 19205 -
branches/5.1
-
branches/5.1/tests/phpunit/tests/term.php
r43571 r47489 195 195 } 196 196 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 209 197 /** 210 198 * @ticket 19205 -
branches/5.2
-
branches/5.2/tests/phpunit/tests/term.php
r43571 r47489 195 195 } 196 196 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 209 197 /** 210 198 * @ticket 19205 -
branches/5.3
-
branches/5.3/tests/phpunit/tests/term.php
r43571 r47489 195 195 } 196 196 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 209 197 /** 210 198 * @ticket 19205
Note: See TracChangeset
for help on using the changeset viewer.