Style Fixes

This commit is contained in:
Christopher Allford 2023-04-18 10:19:45 -07:00
parent 5ca9c47563
commit 38e91e2406
2 changed files with 7 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}