This commit is contained in:
parent
f927305443
commit
7aa7ca1baf
|
@ -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.
|
||||
|
|
|
@ -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'] );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue