Skip to content

Commit 62e6d54

Browse files
ENGCOM-1589: Fix typo in test method's name and test result #15297
- Merge Pull Request #15297 from dmytro-ch/magento2:fix/2.2-typo-in-test-method-name-and-result-value - Merged commits: 1. becbf6a 2. 629f650 3. 7715d65 4. 73afa84
2 parents 0d9a4e3 + 73afa84 commit 62e6d54

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,24 @@ public function selectShippingMethod(array $method)
9191
* @param array $method
9292
* @return bool
9393
*/
94-
public function isShippingMethodAvaiable(array $method)
94+
public function isShippingMethodAvailable(array $method)
9595
{
9696
$this->waitForShippingRates();
9797
$selector = sprintf($this->shippingMethod, $method['shipping_method'], $method['shipping_service']);
9898
return $this->_rootElement->find($selector, Locator::SELECTOR_XPATH)->isVisible();
9999
}
100100

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

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)