public function test_get_customers_without_permission() { wp_set_current_user(0); $response = $this->server->dispatch(new WP_REST_Request('GET', '/wc/v1/customers')); $this->assertEquals(401, $response->get_status()); }