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
module-rule
Test
Unit
Model
Condition
Sql
ExpressionTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Rule\Test\Unit\Model\Condition\Sql
;
8
9
use
Magento\Framework\TestFramework\Unit\Helper\ObjectManager
as ObjectManagerHelper;
10
11
class
ExpressionTest
extends
\PHPUnit\Framework\TestCase
12
{
13
public
function
testExpression
()
14
{
15
$expression = (
new
ObjectManagerHelper($this))->getObject(
16
\
Magento
\Rule\Model\Condition\Sql\Expression::class,
17
[
'expression'
=>
'SQL_EXPRESSION'
]
18
);
19
$this->assertEquals(
'(SQL_EXPRESSION)'
, (
string
)$expression);
20
}
21
}
Magento
Magento\Framework\TestFramework\Unit\Helper\ObjectManager
Definition:
ObjectManager.php:13
Magento\Rule\Test\Unit\Model\Condition\Sql\ExpressionTest
Definition:
ExpressionTest.php:11
Magento\Rule\Test\Unit\Model\Condition\Sql
Definition:
BuilderTest.php:7
Magento\Rule\Test\Unit\Model\Condition\Sql\ExpressionTest\testExpression
testExpression()
Definition:
ExpressionTest.php:13