From 0a7ff525d623b60a2f739f0f014bfb78d043d759 Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Fri, 15 Apr 2022 15:43:45 +0530 Subject: [PATCH] Add value clause for better testing. --- .../Migrations/CustomOrderTable/WPPostToCOTMigratorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/WPPostToCOTMigratorTest.php b/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/WPPostToCOTMigratorTest.php index d51eeb36633..eba74dc151d 100644 --- a/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/WPPostToCOTMigratorTest.php +++ b/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/WPPostToCOTMigratorTest.php @@ -113,7 +113,7 @@ WHERE order_id = {$order_id} $wpdb->get_var( " SELECT COUNT(*) FROM {$this->data_store::get_meta_table_name()} -WHERE order_id = {$order_id} AND meta_key = 'unique_key_1' +WHERE order_id = {$order_id} AND meta_key = 'unique_key_1' AND meta_value = 'unique_value_1' " ) ); @@ -122,7 +122,7 @@ WHERE order_id = {$order_id} AND meta_key = 'unique_key_1' $wpdb->get_var( " SELECT COUNT(*) FROM {$this->data_store::get_meta_table_name()} -WHERE order_id = {$order_id} AND meta_key = 'non_unique_key_1' +WHERE order_id = {$order_id} AND meta_key = 'non_unique_key_1' AND meta_value in ( 'non_unique_value_1', 'non_unique_value_2' ) " ) );