From 6b7a708fa19585a02960a5dbe9f50e4ae53a9a71 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 9 Feb 2021 18:08:07 +0000 Subject: [PATCH] Tests: Correct the test for `NOT BETWEEN` comparison operator in `WP_Date_Query`. Follow-up to [29793]. Props patopaiar, jrf. See #39265, #51802. git-svn-id: https://develop.svn.wordpress.org/trunk@50276 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 fe31577e04..9f8c98f574 100644 --- a/tests/phpunit/tests/date/query.php +++ b/tests/phpunit/tests/date/query.php @@ -225,10 +225,10 @@ class Tests_WP_Date_Query extends WP_UnitTestCase { $found = $q->get_compare( array( - 'compare' => 'BETWEEN', + 'compare' => 'NOT BETWEEN', ) ); - $this->assertSame( 'BETWEEN', $found ); + $this->assertSame( 'NOT BETWEEN', $found ); } public function test_validate_column_post_date() {