Fix test_build_mysql_datetime_datetime_non_array().
The expected value was being incorrectly built. git-svn-id: https://develop.svn.wordpress.org/trunk@29906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
83b0f3f681
commit
d4239b67da
|
@ -413,8 +413,8 @@ class Tests_WP_Date_Query extends WP_UnitTestCase {
|
|||
|
||||
// This might be a fragile test if it takes longer than 1 second to run
|
||||
$found = $q->build_mysql_datetime( 'foo' );
|
||||
$expected = gmdate( 'Y-m-d H:i:s', strtotime( current_time( 'timestamp' ) ) );
|
||||
$this->assertSame( $found, $expected );
|
||||
$expected = gmdate( 'Y-m-d H:i:s', false );
|
||||
$this->assertSame( $expected, $found );
|
||||
}
|
||||
|
||||
public function test_build_mysql_datetime_default_to_max_true() {
|
||||
|
|
Loading…
Reference in New Issue