Home / APIs / WC_Tests_API_Shipping_Zones_V2::test_update_locations_invalid_id() – Test updating Shipping Zone Locations with a bad zone ID.

You appear to be a bot. Output may be restricted

Description

Test updating Shipping Zone Locations with a bad zone ID.

Usage

WC_Tests_API_Shipping_Zones_V2::test_update_locations_invalid_id();

Parameters

Returns

void

Source

File name: woocommerce/tests/unit-tests/api/v2/shipping-zones.php
Lines: 1 to 7 of 7

  public function test_update_locations_invalid_id() {
    wp_set_current_user( $this->user );

    $response = $this->server->dispatch( new WP_REST_Request( 'PUT', '/wc/v2/shipping/zones/1/locations' ) );

    $this->assertEquals( 404, $response->get_status() );
  }
 

 View on GitHub View on Trac

Published: 11th January 2019 | Last updated: 11th January 2019

Information

Function name: WC_Tests_API_Shipping_Zones_V2::test_update_locations_invalid_id
Class ref: WC_Tests_API_Shipping_Zones_V2
Plugin ref: WooCommerce
Version: 3.6.0-dev
Sourcefile: tests/unit-tests/api/v2/shipping-zones.php
File ref: tests/unit-tests/api/v2/shipping-zones.php
Deprecated?: No
API Letters: A,S,T,W,Z

  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WooCommerce a2z WooCommerce a2z
WooCommerce

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins