Add edge case test
This commit is contained in:
parent
489e67dbe1
commit
62064d56f8
|
@ -657,6 +657,9 @@ class WC_Tests_Order_Functions extends WC_Unit_Test_Case {
|
|||
$orders = wc_get_orders( array( 'customer' => array( 'invalid' ) ) );
|
||||
$this->assertEmpty( $orders );
|
||||
|
||||
$orders = wc_get_orders( array( 'customer' => array( '' ) ) );
|
||||
$this->assertEmpty( $orders );
|
||||
|
||||
$orders = wc_get_orders( array( 'customer' => 'doesnt@exist.com' ) );
|
||||
$this->assertEmpty( $orders );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue