From d4239b67dafe77f66828cf21c7cded158167127a Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 15 Oct 2014 17:52:05 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/date/query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/date/query.php b/tests/phpunit/tests/date/query.php index e9dd1912a6..57707ce66a 100644 --- a/tests/phpunit/tests/date/query.php +++ b/tests/phpunit/tests/date/query.php @@ -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() {