Make WordPress Core

Changeset 50276


Ignore:
Timestamp:
02/09/2021 06:08:07 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct the test for NOT BETWEEN comparison operator in WP_Date_Query.

Follow-up to [29793].

Props patopaiar, jrf.
See #39265, #51802.

File:
1 edited

Legend:

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

    r49606 r50276  
    226226                $found = $q->get_compare(
    227227                        array(
    228                                 'compare' => 'BETWEEN',
    229                         )
    230                 );
    231                 $this->assertSame( 'BETWEEN', $found );
     228                                'compare' => 'NOT BETWEEN',
     229                        )
     230                );
     231                $this->assertSame( 'NOT BETWEEN', $found );
    232232        }
    233233
Note: See TracChangeset for help on using the changeset viewer.