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
integration
testsuite
Magento
CatalogSearch
Model
Indexer
IndexSwitcherMock.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogSearch\Model\Indexer
;
8
12
class
IndexSwitcherMock
extends
\PHPUnit\Framework\Assert implements
IndexSwitcherInterface
13
{
14
private
$isSwitched =
false
;
15
19
private
$indexSwitcher;
20
24
public
function
__construct
(
25
IndexSwitcherInterface
$indexSwitcher
26
) {
27
$this->indexSwitcher = $indexSwitcher;
28
}
29
38
public
function
switchIndex
(array $dimensions)
39
{
40
$this->
isSwitched
|=
true
;
41
$this->indexSwitcher->switchIndex($dimensions);
42
}
43
47
public
function
isSwitched
()
48
{
49
return
(
bool
) $this->isSwitched;
50
}
51
}
Magento\CatalogSearch\Model\Indexer\IndexSwitcherMock\isSwitched
isSwitched()
Definition:
IndexSwitcherMock.php:47
Magento\CatalogSearch\Model\Indexer\IndexSwitcherInterface
Definition:
IndexSwitcherInterface.php:14
Magento\CatalogSearch\Model\Indexer
Magento\CatalogSearch\Model\Indexer\IndexSwitcherMock\switchIndex
switchIndex(array $dimensions)
Definition:
IndexSwitcherMock.php:38
Magento\CatalogSearch\Model\Indexer\IndexSwitcherMock
Definition:
IndexSwitcherMock.php:12
Magento\CatalogSearch\Model\Indexer\IndexSwitcherMock\__construct
__construct(IndexSwitcherInterface $indexSwitcher)
Definition:
IndexSwitcherMock.php:24