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' ) " ) );