Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExpressionTest.php
Go to the documentation of this file.
1 <?php
8 
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 }