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
Framework
Search
Request
Config
FileSystemReaderTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Search\Request\Config
;
7
8
class
FileSystemReaderTest
extends
\PHPUnit\Framework\TestCase
9
{
11
protected
$object
;
12
13
protected
function
setUp
()
14
{
15
$fileResolver =
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(
16
\
Magento
\Framework\Search\Request\
Config
\FileResolverStub::class
17
);
18
$this->
object
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(
19
\
Magento
\Framework\Search\Request\
Config
\FilesystemReader::class,
20
[
'fileResolver'
=> $fileResolver]
21
);
22
}
23
24
public
function
testRead
()
25
{
26
$result
= $this->
object
->read();
27
// Filter values added by \Magento\CatalogSearch\Model\Search\ReaderPlugin
28
$result
= array_intersect_key(
$result
, array_flip([
'bool_query'
,
'filter_query'
,
'new_match_query'
]));
29
$expected = include
__DIR__
.
'/../../_files/search_request_merged.php'
;
30
$this->assertEquals($expected,
$result
);
31
}
32
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Signifyd\Model\Config\FileSystemReaderTest\setUp
setUp()
Definition:
FileSystemReaderTest.php:13
Magento\Framework\Search\Request\Config
Definition:
Converter.php:6
Magento\Signifyd\Model\Config\FileSystemReaderTest\$object
$object
Definition:
FileSystemReaderTest.php:11
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
Magento\Signifyd\Model\Config\FileSystemReaderTest
Definition:
FileSystemReaderTest.php:8
Magento\Signifyd\Model\Config\FileSystemReaderTest\testRead
testRead()
Definition:
FileSystemReaderTest.php:24
Magento
Magento\Framework\App\ResourceConnection\Config
Definition:
Config.php:14
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125