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
framework
App
Test
Unit
Config
PreProcessorCompositeTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\App\Test\Unit\Config
;
7
8
use
Magento\Framework\App\Config\PreProcessorComposite
;
9
use
Magento\Framework\App\Config\Spi\PreProcessorInterface
;
10
11
class
PreProcessorCompositeTest
extends
\PHPUnit\Framework\TestCase
12
{
16
private
$model;
17
21
private
$preProcessorMock;
22
23
protected
function
setUp
()
24
{
25
$this->preProcessorMock = $this->getMockBuilder(PreProcessorInterface::class)
26
->getMockForAbstractClass();
27
28
$this->model =
new
PreProcessorComposite
([$this->preProcessorMock]);
29
}
30
31
public
function
testProcess
()
32
{
33
$this->preProcessorMock->expects($this->once())
34
->method(
'process'
)
35
->with([
'test'
=>
'data'
])
36
->willReturn([
'test'
=>
'data2'
]);
37
38
$this->assertSame([
'test'
=>
'data2'
], $this->model->process([
'test'
=>
'data'
]));
39
}
40
}
Magento\Framework\App\Test\Unit\Config\PreProcessorCompositeTest\setUp
setUp()
Definition:
PreProcessorCompositeTest.php:23
Magento\Framework\App\Test\Unit\Config\PreProcessorCompositeTest
Definition:
PreProcessorCompositeTest.php:11
Magento\Framework\App\Test\Unit\Config
Definition:
BaseFactoryTest.php:6
Magento\Framework\App\Config\PreProcessorComposite
Definition:
PreProcessorComposite.php:13
Magento\Framework\App\Config\Spi\PreProcessorInterface
Definition:
PreProcessorInterface.php:11
Magento\Framework\App\Test\Unit\Config\PreProcessorCompositeTest\testProcess
testProcess()
Definition:
PreProcessorCompositeTest.php:31