Changeset 42343 for trunk/tests/phpunit/tests/term/isObjectInTerm.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/isObjectInTerm.php
r38277 r42343 41 41 register_taxonomy( 'wptests_tax', 'post' ); 42 42 43 $t1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Foo' ) ); 44 $t2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Bar') ); 43 $t1 = self::factory()->term->create( 44 array( 45 'taxonomy' => 'wptests_tax', 46 'name' => 'Foo', 47 ) 48 ); 49 $t2 = self::factory()->term->create( 50 array( 51 'taxonomy' => 'wptests_tax', 52 'name' => 'Bar', 53 ) 54 ); 45 55 46 56 $posts = self::factory()->post->create_many( 2 ); … … 56 66 register_taxonomy( 'wptests_tax', 'post' ); 57 67 58 $t1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'foo' ) ); 59 $t2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'bar') ); 68 $t1 = self::factory()->term->create( 69 array( 70 'taxonomy' => 'wptests_tax', 71 'slug' => 'foo', 72 ) 73 ); 74 $t2 = self::factory()->term->create( 75 array( 76 'taxonomy' => 'wptests_tax', 77 'slug' => 'bar', 78 ) 79 ); 60 80 61 81 $posts = self::factory()->post->create_many( 2 ); … … 71 91 register_taxonomy( 'wptests_tax', 'post' ); 72 92 73 $t1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'foo' ) ); 74 $t2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'bar') ); 93 $t1 = self::factory()->term->create( 94 array( 95 'taxonomy' => 'wptests_tax', 96 'slug' => 'foo', 97 ) 98 ); 99 $t2 = self::factory()->term->create( 100 array( 101 'taxonomy' => 'wptests_tax', 102 'slug' => 'bar', 103 ) 104 ); 75 105 76 106 $posts = self::factory()->post->create_many( 2 ); … … 90 120 $t = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax' ) ); 91 121 92 $post_ID 122 $post_ID = self::factory()->post->create(); 93 123 wp_set_object_terms( $post_ID, $t, 'wptests_tax' ); 94 124
Note: See TracChangeset
for help on using the changeset viewer.