Order untrash test

This commit is contained in:
Abdalsalaam Halawa 2023-06-23 20:30:05 +03:00 committed by barryhughes
parent 6b72758d80
commit 716119822f
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class WC_Order_Functions_Test extends \WC_Unit_Test_Case {
if ( $order->delete( false ) ) {
$this->assertEquals( 0, $product->get_total_sales() );
wp_untrash_post( $order->get_id() );
$order->untrash();
$this->assertEquals( 1, $product->get_total_sales() );
}