Skip to content

Commit 7715d65

Browse files
committed
Restore the deprecated method
1 parent 629f650 commit 7715d65

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping/Method.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ public function isShippingMethodAvailable(array $method)
9898
return $this->_rootElement->find($selector, Locator::SELECTOR_XPATH)->isVisible();
9999
}
100100

101+
/**
102+
* @deprecated
103+
* @param array $method
104+
* @return bool
105+
*/
106+
public function isShippingMethodAvaiable(array $method)
107+
{
108+
return $this->isShippingMethodAvailable($method);
109+
}
110+
101111
/**
102112
* Click continue button.
103113
*

dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertCityBasedShippingRateChanged.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public function processAssert(CheckoutOnepage $checkoutOnepage, $shippingMethod,
3030
'Shipping rate has not been changed.'
3131
);
3232
}
33-
$shippingAvailability = $isShippingAvailable ? 'avaiable' : 'unavailable';
33+
$shippingAvailability = $isShippingAvailable ? 'available' : 'unavailable';
3434
\PHPUnit_Framework_Assert::assertEquals(
3535
$isShippingAvailable,
36-
$checkoutOnepage->getShippingMethodBlock()->isShippingMethodAvaiable($shippingMethod),
36+
$checkoutOnepage->getShippingMethodBlock()->isShippingMethodAvailable($shippingMethod),
3737
"Shipping rates for {$shippingMethod['shipping_service']} should be $shippingAvailability."
3838
);
3939
}

0 commit comments

Comments
 (0)