Fixed /reports/products/totals unit tests

This commit is contained in:
Claudio Sanches 2018-09-08 23:10:20 -03:00
parent 14a1217218
commit 047ad849b4
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class WC_Tests_API_Reports_Products_Totals extends WC_REST_Unit_Test_Case {
*/ */
public function test_get_reports() { public function test_get_reports() {
wp_set_current_user( $this->user ); wp_set_current_user( $this->user );
WC_Install::create_terms();
$response = $this->server->dispatch( new WP_REST_Request( 'GET', '/wc/v3/reports/products/totals' ) ); $response = $this->server->dispatch( new WP_REST_Request( 'GET', '/wc/v3/reports/products/totals' ) );
$report = $response->get_data(); $report = $response->get_data();