Test coverage for shipping zone method routes.

This commit is contained in:
Jeff Stieler 2016-06-17 15:49:08 -06:00 committed by Justin Shreve
parent 61a5bf8a68
commit cdc90f5633
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}
/**