Changeset 29701 for trunk/tests/phpunit/tests/db.php
- Timestamp:
- 09/04/2014 04:30:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r29664 r29701 445 445 function test_empty_where_on_update() { 446 446 global $wpdb; 447 $s how = $wpdb->show_errors(false);447 $suppress = $wpdb->suppress_errors( true ); 448 448 $wpdb->update( $wpdb->posts, array( 'post_name' => 'burrito' ), array() ); 449 449 … … 457 457 $this->assertEmpty( $wpdb->last_error ); 458 458 $this->assertEquals( $expected2, $wpdb->last_query ); 459 $wpdb->s how_errors( $show);459 $wpdb->suppress_errors( $suppress ); 460 460 } 461 461 }
Note: See TracChangeset
for help on using the changeset viewer.