diff --git a/plugins/woocommerce/tests/legacy/unit-tests/log/log-handler-email.php b/plugins/woocommerce/tests/legacy/unit-tests/log/log-handler-email.php index 5ec2dbd8810..e6d120d4c51 100644 --- a/plugins/woocommerce/tests/legacy/unit-tests/log/log-handler-email.php +++ b/plugins/woocommerce/tests/legacy/unit-tests/log/log-handler-email.php @@ -290,6 +290,11 @@ class WC_Tests_Log_Handler_Email extends WC_Unit_Test_Case { ); } + /** + * Filters the "from" address in emails to use the expected test email. + * + * @return string + */ public function filter_test_email() { return WP_TESTS_EMAIL; } diff --git a/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php b/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php index 3f373afc250..2cc1b631419 100644 --- a/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php +++ b/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php @@ -514,7 +514,7 @@ WHERE order_id = {$order_id} AND meta_key = 'non_unique_key_1' AND meta_value in $wpdb_mock->register_method_replacement( 'get_results', function( ...$args ) { - $wpdb_decorator = $args[0]; + $wpdb_decorator = $args[0]; $wpdb_decorator->decorated_object->last_error = 'Something failed!'; return false; } @@ -591,7 +591,7 @@ WHERE order_id = {$order_id} AND meta_key = 'non_unique_key_1' AND meta_value in $wpdb_mock->register_method_replacement( 'get_results', function( ...$args ) { - $wpdb_decorator = $args[0]; + $wpdb_decorator = $args[0]; $wpdb_decorator->decorated_object->last_error = 'Something failed!'; return false; }