protected function CommerceFreeShippingTestProcess::disableFreeShipping in Commerce Free Shipping 7
Disable free shipping.
File
- tests/
commerce_free_shipping.test, line 99 - Functional tests for the commerce free shipping module.
Class
- CommerceFreeShippingTestProcess
- Test checkout process.
Code
protected function disableFreeShipping() {
$shipping_services = commerce_shipping_services();
foreach ($shipping_services as $service) {
// Enable free shipping for every service.
$base = $service['base'];
$this
->verbose($base . ' : disable free shipping');
variable_set($base . '_free_shipping_enabled', FALSE);
}
}