Changeset 44547 for trunk/tests/phpunit/tests/bookmark/getBookmarks.php
- Timestamp:
- 01/10/2019 09:16:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/bookmark/getBookmarks.php
r44546 r44547 94 94 ) 95 95 ); 96 96 97 $found_ids = array(); 97 foreach ( $found as $bookmark ) {98 foreach ( $found as $bookmark ) { 98 99 $found_ids[] = $bookmark->link_id; 99 100 } … … 111 112 ) 112 113 ); 114 113 115 $found_ids = array(); 114 foreach( $found as $bookmark ) {115 116 116 foreach ( $found as $bookmark ) { 117 $found_ids[] = $bookmark->link_id; 118 } 117 119 118 120 // equal sets != same order. … … 121 123 122 124 public function test_category_param_propelry_gets_parsed_as_list() { 123 $bookmarks = self::factory()->bookmark->create_many( 3 ); 124 $categories = self::factory()->term->create_many( 3, array( 125 'taxonomy' => 'link_category', 126 ) ); 125 $bookmarks = self::factory()->bookmark->create_many( 3 ); 126 $categories = self::factory()->term->create_many( 127 3, 128 array( 129 'taxonomy' => 'link_category', 130 ) 131 ); 132 127 133 $add = wp_add_object_terms( $bookmarks[0], $categories[0], 'link_category' ); 128 134 $add = wp_add_object_terms( $bookmarks[1], $categories[1], 'link_category' ); … … 134 140 ) 135 141 ); 142 136 143 $found_ids = array(); 137 foreach( $found as $bookmark ) {144 foreach ( $found as $bookmark ) { 138 145 $found_ids[] = $bookmark->link_id; 139 146 } 140 147 141 148 // equal sets != same order.
Note: See TracChangeset
for help on using the changeset viewer.