Changeset 54090 for trunk/tests/phpunit/tests/query.php
- Timestamp:
- 09/06/2022 10:09:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query.php
r53861 r54090 645 645 register_taxonomy( 'tax2', 'post' ); 646 646 647 $term1 = $this->factory->term->create(647 $term1 = self::factory()->term->create( 648 648 array( 649 649 'taxonomy' => 'tax1', … … 651 651 ) 652 652 ); 653 $term2 = $this->factory->term->create(653 $term2 = self::factory()->term->create( 654 654 array( 655 655 'taxonomy' => 'tax2', … … 657 657 ) 658 658 ); 659 $post_id = $this->factory->post->create();659 $post_id = self::factory()->post->create(); 660 660 wp_set_object_terms( $post_id, 'term1', 'tax1' ); 661 661 wp_set_object_terms( $post_id, 'term2', 'tax2' ); … … 675 675 register_taxonomy( 'tax2', 'post' ); 676 676 677 $term1 = $this->factory->term->create(677 $term1 = self::factory()->term->create( 678 678 array( 679 679 'taxonomy' => 'tax1', … … 681 681 ) 682 682 ); 683 $term2 = $this->factory->term->create(683 $term2 = self::factory()->term->create( 684 684 array( 685 685 'taxonomy' => 'tax2', … … 687 687 ) 688 688 ); 689 $post_id = $this->factory->post->create();689 $post_id = self::factory()->post->create(); 690 690 wp_set_object_terms( $post_id, 'term1', 'tax1' ); 691 691 wp_set_object_terms( $post_id, 'term2', 'tax2' );
Note: See TracChangeset
for help on using the changeset viewer.