Make WordPress Core


Ignore:
Timestamp:
09/04/2014 04:30:11 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Properly suppress errors in test_empty_where_on_update(), which expects an empty WHERE clause.

see #26106.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db.php

    r29664 r29701  
    445445        function test_empty_where_on_update() {
    446446                global $wpdb;
    447                 $show = $wpdb->show_errors(false);
     447                $suppress = $wpdb->suppress_errors( true );
    448448                $wpdb->update( $wpdb->posts, array( 'post_name' => 'burrito' ), array() );
    449449
     
    457457                $this->assertEmpty( $wpdb->last_error );
    458458                $this->assertEquals( $expected2, $wpdb->last_query );
    459                 $wpdb->show_errors( $show );
     459                $wpdb->suppress_errors( $suppress );
    460460        }
    461461}
Note: See TracChangeset for help on using the changeset viewer.