Skip to content

Commit 0f9e8e0

Browse files
author
Elena Marchenko
committed
MTA-559: Added asserts for Order Review Page
1 parent 1e3a2a4 commit 0f9e8e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/functional/lib/Magento/Mtf/Util/Generate/Factory/Page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function generateContent()
3333
* @param string $class
3434
* @return string
3535
*/
36-
protected function _toCamelCase($class)
36+
private function toCamelCase($class)
3737
{
3838
$classNameExcessSymbols = ['_', '\\', '/', 'https:', 'http:', 'com', 'www', '.', '-'];
3939
$class = str_replace($classNameExcessSymbols, ' ', $class);
@@ -50,7 +50,7 @@ protected function _addPageToFactory($item)
5050
$realClass = $this->_resolveClass($item);
5151
$reflectionClass = new \ReflectionClass($realClass);
5252
$mca = $reflectionClass->getConstant('MCA');
53-
$methodNameSuffix = $this->_toCamelCase($mca);
53+
$methodNameSuffix = $this->toCamelCase($mca);
5454

5555
$fallbackComment = $this->_buildFallbackComment($item);
5656

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class AbstractReview extends Block
2424
*
2525
* @var string
2626
*/
27-
protected $continue = '#review-buttons-container button';
27+
protected $continueCheckoutButton = '#review-buttons-container button';
2828

2929
/**
3030
* Grand total search mask.
@@ -314,7 +314,7 @@ public function getShippingExclTax()
314314
*/
315315
public function placeOrder()
316316
{
317-
$this->_rootElement->find($this->continue, Locator::SELECTOR_CSS)->click();
317+
$this->_rootElement->find($this->$continueCheckoutButton, Locator::SELECTOR_CSS)->click();
318318
$this->waitForElementNotVisible($this->waitElement);
319319
}
320320

0 commit comments

Comments
 (0)