Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Paypal
Test
TestStep
CheckoutWithPaypalFromProductPageStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Paypal\Test\TestStep
;
8
9
use Magento\Mtf\Client\BrowserInterface;
10
use Magento\Mtf\TestStep\TestStepInterface;
11
use Magento\Catalog\Test\Page\Product\CatalogProductView;
12
use Magento\Mtf\Fixture\FixtureInterface;
13
17
class
CheckoutWithPaypalFromProductPageStep
implements
TestStepInterface
18
{
24
protected
$product
;
25
31
protected
$catalogProductView
;
32
38
protected
$browser
;
39
46
public
function
__construct
(
47
CatalogProductView
$catalogProductView
,
48
BrowserInterface
$browser
,
49
FixtureInterface
$product
50
) {
51
$this->catalogProductView =
$catalogProductView
;
52
$this->browser =
$browser
;
53
$this->product =
$product
;
54
}
55
61
public
function
run
()
62
{
63
$this->browser->open($_ENV[
'app_frontend_url'
] . $this->product->getUrlKey() .
'.html'
);
64
$this->catalogProductView->getViewBlock()->paypalCheckout();
65
}
66
}
Magento\Paypal\Test\TestStep\CheckoutWithPaypalFromProductPageStep\$product
$product
Definition:
CheckoutWithPaypalFromProductPageStep.php:24
Magento\Paypal\Test\TestStep\CheckoutWithPaypalFromProductPageStep\run
run()
Definition:
CheckoutWithPaypalFromProductPageStep.php:61
Magento\Paypal\Test\TestStep\CheckoutWithPaypalFromProductPageStep\__construct
__construct(CatalogProductView $catalogProductView, BrowserInterface $browser, FixtureInterface $product)
Definition:
CheckoutWithPaypalFromProductPageStep.php:46
Magento\Paypal\Test\TestStep
Definition:
CheckExpressConfigStep.php:7
Magento\Paypal\Test\TestStep\CheckoutWithPaypalFromProductPageStep
Definition:
CheckoutWithPaypalFromProductPageStep.php:17
Magento\Paypal\Test\TestStep\CheckoutWithPaypalFromProductPageStep\$catalogProductView
$catalogProductView
Definition:
CheckoutWithPaypalFromProductPageStep.php:31
Magento\Paypal\Test\TestStep\CheckoutWithPaypalFromProductPageStep\$browser
$browser
Definition:
CheckoutWithPaypalFromProductPageStep.php:38