diff --git a/tests/unit-tests/webhooks/functions.php b/tests/unit-tests/webhooks/functions.php index 4e4b883489e..d9f2d2423fb 100644 --- a/tests/unit-tests/webhooks/functions.php +++ b/tests/unit-tests/webhooks/functions.php @@ -1,4 +1,8 @@ assertEquals( $assert, $values ); @@ -97,16 +103,18 @@ class WC_Tests_Webhook_Functions extends WC_Unit_Test_Case { * @since 3.2.0 */ public function test_wc_load_webhooks() { - $webhook = new WC_Webhook; - $webhook->set_props( array( - 'status' => 'active', - 'name' => 'Testing webhook', - 'user_id' => 0, - 'delivery_url' => 'https://requestb.in/17jajv31', - 'secret' => 'secret', - 'topic' => 'action.woocommerce_some_action', - 'api_version' => 2, - ) ); + $webhook = new WC_Webhook(); + $webhook->set_props( + array( + 'status' => 'active', + 'name' => 'Testing webhook', + 'user_id' => 0, + 'delivery_url' => 'https://requestb.in/17jajv31', + 'secret' => 'secret', + 'topic' => 'action.woocommerce_some_action', + 'api_version' => 2, + ) + ); $webhook->save(); $this->assertTrue( wc_load_webhooks() );