Changeset 26490
- Timestamp:
- 12/01/2013 12:42:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/query.php
r26056 r26490 224 224 ), 225 225 ) ); 226 $this->assertEqual s( array( $post_3 ), wp_list_pluck( $query->posts, 'ID' ) );226 $this->assertEqualSets( array( $post_3 ), wp_list_pluck( $query->posts, 'ID' ) ); 227 227 228 228 $query = new WP_Query( array( … … 236 236 ), 237 237 ) ); 238 $this->assertEqual s( array( $post_4 ), wp_list_pluck( $query->posts, 'ID' ) );238 $this->assertEqualSets( array( $post_4 ), wp_list_pluck( $query->posts, 'ID' ) ); 239 239 240 240 $query = new WP_Query( array( … … 248 248 ), 249 249 ) ); 250 $this->assertEqual s( array( $post_3, $post_4 ), wp_list_pluck( $query->posts, 'ID' ) );250 $this->assertEqualSets( array( $post_3, $post_4 ), wp_list_pluck( $query->posts, 'ID' ) ); 251 251 252 252 $query = new WP_Query( array( … … 260 260 ), 261 261 ) ); 262 $this->assertEqual s( array( $post_1 ), wp_list_pluck( $query->posts, 'ID' ) );262 $this->assertEqualSets( array( $post_1 ), wp_list_pluck( $query->posts, 'ID' ) ); 263 263 264 264 $query = new WP_Query( array( … … 273 273 274 274 ) ); 275 $this->assertEqual s( array( $post_1, $post_2, $post_3 ), wp_list_pluck( $query->posts, 'ID' ) );275 $this->assertEqualSets( array( $post_1, $post_2, $post_3 ), wp_list_pluck( $query->posts, 'ID' ) ); 276 276 277 277 $query = new WP_Query( array( … … 285 285 ), 286 286 ) ); 287 $this->assertEqual s( array( $post_3 ), wp_list_pluck( $query->posts, 'ID' ) );287 $this->assertEqualSets( array( $post_3 ), wp_list_pluck( $query->posts, 'ID' ) ); 288 288 289 289 $query = new WP_Query( array( … … 297 297 ), 298 298 ) ); 299 $this->assertEqual s( array( $post_1, $post_2, $post_4 ), wp_list_pluck( $query->posts, 'ID' ) );299 $this->assertEqualSets( array( $post_1, $post_2, $post_4 ), wp_list_pluck( $query->posts, 'ID' ) ); 300 300 301 301 $query = new WP_Query( array( … … 309 309 ), 310 310 ) ); 311 $this->assertEqual s( array( $post_1, $post_3 ), wp_list_pluck( $query->posts, 'ID' ) );312 313 314 315 316 317 318 319 320 321 322 323 $this->assertEquals( array( $post_2, $post_4 ), wp_list_pluck( $query->posts, 'ID' ) );311 $this->assertEqualSets( array( $post_1, $post_3 ), wp_list_pluck( $query->posts, 'ID' ) ); 312 313 $query = new WP_Query( array( 314 'meta_query' => array( 315 array( 316 'key' => 'decimal_value', 317 'value' => '.3', 318 'compare' => 'NOT LIKE', 319 'type' => 'DECIMAL(10,2)' 320 ) 321 ), 322 ) ); 323 $this->assertEqualSets( array( $post_2, $post_4 ), wp_list_pluck( $query->posts, 'ID' ) ); 324 324 325 325 $query = new WP_Query( array( … … 329 329 'meta_type' => 'DECIMAL(10, 2)' 330 330 ) ); 331 $this->assertEqual s( array( $post_4, $post_3, $post_2, $post_1 ), wp_list_pluck( $query->posts, 'ID' ) );331 $this->assertEqualSets( array( $post_4, $post_3, $post_2, $post_1 ), wp_list_pluck( $query->posts, 'ID' ) ); 332 332 333 333 }
Note: See TracChangeset
for help on using the changeset viewer.