Test coverage for shipping zone method routes.
This commit is contained in:
parent
61a5bf8a68
commit
cdc90f5633
|
@ -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<id>[\d-]+)', $routes );
|
||||
$this->assertArrayHasKey( '/wc/v1/shipping/zones/(?P<id>[\d-]+)/locations', $routes );
|
||||
$this->assertArrayHasKey( '/wc/v1/shipping/zones/(?P<zone_id>[\d-]+)/methods', $routes );
|
||||
$this->assertArrayHasKey( '/wc/v1/shipping/zones/(?P<zone_id>[\d-]+)/methods/(?P<instance_id>[\d-]+)', $routes );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue