diff --git a/tests/unit-tests/api/shipping-zones.php b/tests/unit-tests/api/shipping-zones.php index 6e44ae550c0..aa062340c5b 100644 --- a/tests/unit-tests/api/shipping-zones.php +++ b/tests/unit-tests/api/shipping-zones.php @@ -70,6 +70,8 @@ class WC_Tests_API_Shipping_Zones extends WC_Unit_Test_Case { $this->assertArrayHasKey( '/wc/v1/shipping/zones', $routes ); $this->assertArrayHasKey( '/wc/v1/shipping/zones/(?P[\d-]+)', $routes ); $this->assertArrayHasKey( '/wc/v1/shipping/zones/(?P[\d-]+)/locations', $routes ); + $this->assertArrayHasKey( '/wc/v1/shipping/zones/(?P[\d-]+)/methods', $routes ); + $this->assertArrayHasKey( '/wc/v1/shipping/zones/(?P[\d-]+)/methods/(?P[\d-]+)', $routes ); } /**