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
View
Test
Unit
Layout
Argument
Interpreter
PassthroughTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Test\Unit\Layout\Argument\Interpreter
;
7
8
use \Magento\Framework\View\Layout\Argument\Interpreter\Passthrough;
9
10
class
PassthroughTest
extends
\PHPUnit\Framework\TestCase
11
{
15
protected
$_model
;
16
17
protected
function
setUp
()
18
{
19
$this->_model =
new
Passthrough
();
20
}
21
22
public
function
testEvaluate
()
23
{
24
$input = [
'data'
=>
'some/value'
];
25
$expected = [
'data'
=>
'some/value'
];
26
27
$actual = $this->_model->evaluate($input);
28
$this->assertSame($expected, $actual);
29
}
30
}
Magento\Framework\View\Test\Unit\Layout\Argument\Interpreter\PassthroughTest\$_model
$_model
Definition:
PassthroughTest.php:15
Magento\Framework\View\Test\Unit\Layout\Argument\Interpreter\PassthroughTest
Definition:
PassthroughTest.php:10
Magento\Framework\View\Test\Unit\Layout\Argument\Interpreter\PassthroughTest\testEvaluate
testEvaluate()
Definition:
PassthroughTest.php:22
Magento\Framework\View\Test\Unit\Layout\Argument\Interpreter\PassthroughTest\setUp
setUp()
Definition:
PassthroughTest.php:17
Magento\Framework\View\Test\Unit\Layout\Argument\Interpreter
Magento\Framework\View\Layout\Argument\Interpreter\Passthrough
Definition:
Passthrough.php:13