Style Fixes
This commit is contained in:
parent
5ca9c47563
commit
38e91e2406
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue