Make WordPress Core

Changeset 29906


Ignore:
Timestamp:
10/15/2014 05:52:05 PM (10 years ago)
Author:
boonebgorges
Message:

Fix test_build_mysql_datetime_datetime_non_array().

The expected value was being incorrectly built.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/date/query.php

    r29797 r29906  
    414414        // This might be a fragile test if it takes longer than 1 second to run
    415415        $found = $q->build_mysql_datetime( 'foo' );
    416         $expected = gmdate( 'Y-m-d H:i:s', strtotime( current_time( 'timestamp' ) ) );
    417         $this->assertSame( $found, $expected );
     416        $expected = gmdate( 'Y-m-d H:i:s', false );
     417        $this->assertSame( $expected, $found );
    418418    }
    419419
Note: See TracChangeset for help on using the changeset viewer.