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
Backend
Test
Block
System
Store
Edit
Form
StoreForm.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Test\Block\System\Store\Edit\Form
;
8
9
use Magento\Mtf\Block\Form;
10
use Magento\Mtf\Client\Locator;
11
16
class
StoreForm
extends
Form
17
{
23
protected
$store
=
'//option[contains(.,"%s")]'
;
24
30
protected
$storeGroupId
=
'//select[@id="store_group_id"]'
;
31
38
public
function
isStoreVisible
(
$name
)
39
{
40
return
$this->_rootElement->find(sprintf($this->store,
$name
), Locator::SELECTOR_XPATH)->isVisible();
41
}
42
49
public
function
selectStore
(
$name
)
50
{
51
return
$this->_rootElement->find($this->storeGroupId, Locator::SELECTOR_XPATH,
'optgroupselect'
)
52
->setValue(
$name
);
53
}
54
}
Magento\Backend\Test\Block\System\Store\Edit\Form\StoreForm
Definition:
StoreForm.php:16
Magento\Backend\Test\Block\System\Store\Edit\Form
Definition:
GroupForm.php:7
Magento\Backend\Test\Block\System\Store\Edit\Form\StoreForm\$store
$store
Definition:
StoreForm.php:23
Magento\Backend\Test\Block\System\Store\Edit\Form\StoreForm\isStoreVisible
isStoreVisible($name)
Definition:
StoreForm.php:38
Magento\Backend\Test\Block\System\Store\Edit\Form\StoreForm\$storeGroupId
$storeGroupId
Definition:
StoreForm.php:30
Magento\Backend\Test\Block\System\Store\Edit\Form\StoreForm\selectStore
selectStore($name)
Definition:
StoreForm.php:49
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14