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:
Boone Gorges 2014-10-15 17:52:05 +00:00
parent 83b0f3f681
commit d4239b67da
1 changed files with 2 additions and 2 deletions

View File

@ -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() {