diff --git a/src/Controllers/Version4/AbstractTermsContoller.php b/src/Controllers/Version4/AbstractTermsContoller.php index 43d4966853f..fea0f2ce815 100644 --- a/src/Controllers/Version4/AbstractTermsContoller.php +++ b/src/Controllers/Version4/AbstractTermsContoller.php @@ -802,7 +802,7 @@ abstract class AbstractTermsContoller extends AbstractController { * Get taxonomy. * * @param \WP_REST_Request $request Full details about the request. - * @return int|\WP_Error + * @return string */ protected function get_taxonomy( $request ) { // Check if taxonomy is defined. diff --git a/unit-tests/Tests/Version4/Products.php b/unit-tests/Tests/Version4/Products.php index 744674c8a8c..94585a06e97 100644 --- a/unit-tests/Tests/Version4/Products.php +++ b/unit-tests/Tests/Version4/Products.php @@ -281,7 +281,7 @@ class Products extends WC_REST_Unit_Test_Case { ); $response = $this->server->dispatch( $request ); $data = $response->get_data(); -var_dump($data); + $this->assertEquals( 'Test API Update', $data['button_text'] ); $this->assertEquals( 'http://automattic.com', $data['external_url'] ); }