Change test to better check validity

This commit is contained in:
claudiulodro 2017-05-10 13:20:07 -07:00
parent d461ea86d6
commit fc365d29eb
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class WC_Tests_WC_Order_Query extends WC_Unit_Test_Case {
'date_created' => $past . '...' . $future
) );
$this->assertEquals( 1, count( $query->get_orders() ) );
$query->set( 'date_created', $now_date . '...' . $future );
$query->set( 'date_created', $past . '...' . $now_date );
$this->assertEquals( 1, count( $query->get_orders() ) );
$query->set( 'date_created', $future . '...' . $now_date );
$this->assertEquals( 0, count( $query->get_orders() ) );