This commit is contained in:
Mike Jolley 2019-06-13 16:11:59 +01:00
parent f927305443
commit 7aa7ca1baf
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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'] );
}