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
DB
Test
Unit
Sql
UnionExpressionTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\DB\Test\Unit\Sql
;
7
8
use
Magento\Framework\DB\Select
;
9
10
class
UnionExpressionTest
extends
\PHPUnit\Framework\TestCase
11
{
12
public
function
testToString
()
13
{
14
$sqlMock = $this->getMockBuilder(\
Magento
\Framework\DB\Select::class)
15
->disableOriginalConstructor()
16
->getMock();
17
$sqlMock->expects($this->once())
18
->method(
'assemble'
)
19
->willReturn(
'test_assemble'
);
20
$parts = [
21
$sqlMock,
22
'(test_column)'
23
];
24
$model
= new \Magento\Framework\DB\Sql\UnionExpression($parts);
25
$this->assertEquals(
'(test_assemble)'
.
Select::SQL_UNION
.
'(test_column)'
,
$model
->__toString());
26
}
27
}
Magento\Framework\DB\Test\Unit\Sql
Definition:
LimitExpressionTest.php:6
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Framework\DB\Test\Unit\Sql\UnionExpressionTest
Definition:
UnionExpressionTest.php:10
Magento\Framework\DB\Test\Unit\Sql\UnionExpressionTest\testToString
testToString()
Definition:
UnionExpressionTest.php:12
Zend_Db_Select\SQL_UNION
const SQL_UNION
Definition:
Select.php:68
Magento
Magento\Framework\DB\Select
Definition:
ColumnsRenderer.php:6