assertEquals( $assert, $values ); } /** * Test wc_get_webhook_statuses(). * * @since 3.2.0 */ public function test_wc_get_webhook_statuses() { $expected = array( 'active' => 'Active', 'paused' => 'Paused', 'disabled' => 'Disabled', ); $this->assertEquals( $expected, wc_get_webhook_statuses() ); } /** * Test wc_load_webhooks(). * * @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' => '', 'secret' => 'secret', 'topic' => 'action.woocommerce_some_action', 'api_version' => 2, ) ); $webhook->save(); $results = wc_load_webhooks(); $this->assertTrue( $results ); } }