diff --git a/tests/includes/legacy/tests-misc-functions.php b/tests/includes/legacy/tests-misc-functions.php index b868dc48f55..88396f18818 100644 --- a/tests/includes/legacy/tests-misc-functions.php +++ b/tests/includes/legacy/tests-misc-functions.php @@ -102,6 +102,8 @@ public function give_get_currency_name_data_provider() { * @dataProvider give_meta_helpers_provider */ public function test_give_meta_helpers( $form_or_donation_id ) { + $form_or_donation_id = $form_or_donation_id(); + $value = give_get_meta( $form_or_donation_id, 'testing_meta', true, 'TEST1' ); $this->assertEquals( 'TEST1', $value ); @@ -129,10 +131,10 @@ public function test_give_meta_helpers( $form_or_donation_id ) { * @access private */ public function give_meta_helpers_provider() { - return array( - array( Give_Helper_Payment::create_simple_payment() ), - array( Give_Helper_Form::create_simple_form()->id ), - ); + return [ + [function () { return Give_Helper_Payment::create_simple_payment(); }], + [function () { return Give_Helper_Form::create_simple_form()->id; }], + ]; } /**