Fixed /reports/products/totals unit tests
This commit is contained in:
parent
14a1217218
commit
047ad849b4
|
@ -37,6 +37,7 @@ class WC_Tests_API_Reports_Products_Totals extends WC_REST_Unit_Test_Case {
|
|||
*/
|
||||
public function test_get_reports() {
|
||||
wp_set_current_user( $this->user );
|
||||
WC_Install::create_terms();
|
||||
|
||||
$response = $this->server->dispatch( new WP_REST_Request( 'GET', '/wc/v3/reports/products/totals' ) );
|
||||
$report = $response->get_data();
|
||||
|
|
Loading…
Reference in New Issue