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
CatalogSearch
Test
Block
Advanced
SearchResultsTitle.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogSearch\Test\Block\Advanced
;
8
9
use Magento\Mtf\Block\Block;
10
use Magento\Mtf\Client\Locator;
11
15
class
SearchResultsTitle
extends
Block
16
{
22
protected
$searchResultsFor
=
'[data-ui-id="page-title-wrapper"]'
;
23
29
public
function
getSearchQuery
()
30
{
31
$searchQueryResult = $this->_rootElement->find(sprintf($this->searchResultsFor), Locator::SELECTOR_CSS)
32
->getText();
33
preg_match(
"~Search results for: \'(.*)\'~"
, $searchQueryResult, $matches);
34
$query
= isset($matches[1]) ? $matches[1] :
null
;
35
return
$query
;
36
}
37
}
Magento\CatalogSearch\Test\Block\Advanced\SearchResultsTitle\getSearchQuery
getSearchQuery()
Definition:
SearchResultsTitle.php:29
$query
$query
Definition:
popular_query.php:9
Magento\CatalogSearch\Test\Block\Advanced\SearchResultsTitle
Definition:
SearchResultsTitle.php:15
Magento\CatalogSearch\Test\Block\Advanced\SearchResultsTitle\$searchResultsFor
$searchResultsFor
Definition:
SearchResultsTitle.php:22
Magento\CatalogSearch\Test\Block\Advanced