/**
* Test: WC_Shipping_Zones::get_shipping_method
*/
public function test_get_shipping_method()
{
// Setup
WC_Helper_Shipping_Zones::create_mock_zones();
// Test
$zone = WC_Shipping_Zones::get_zone_by('zone_id', 1);
$instance_id = $zone->add_shipping_method('flat_rate');
$shipping_method = WC_Shipping_Zones::get_shipping_method($instance_id);
// Assert
$this->assertInstanceOf('WC_Shipping_Flat_Rate', $shipping_method);
// Clean
WC_Helper_Shipping_Zones::remove_mock_zones();
}