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-amqp
Test
Unit
ConfigPoolTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Amqp\Test\Unit
;
7
8
class
ConfigPoolTest
extends
\PHPUnit\Framework\TestCase
9
{
10
public
function
testGetConnection
()
11
{
12
$factory
= $this->createMock(\
Magento
\Framework\Amqp\ConfigFactory::class);
13
$config
= $this->createMock(\
Magento
\Framework\Amqp\Config::class);
14
$factory
->expects($this->once())->method(
'create'
)->with([
'connectionName'
=>
'amqp'
])->willReturn(
$config
);
15
$model
= new \Magento\Framework\Amqp\ConfigPool(
$factory
);
16
$this->assertEquals(
$config
,
$model
->get(
'amqp'
));
17
//test that object is cached
18
$this->assertEquals(
$config
,
$model
->get(
'amqp'
));
19
}
20
}
Magento\Framework\Amqp\Test\Unit\ConfigPoolTest\testGetConnection
testGetConnection()
Definition:
ConfigPoolTest.php:10
$config
$config
Definition:
fraud_order.php:17
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Framework\Amqp\Test\Unit
Magento
$factory
$factory
Definition:
category_multiple_stores.php:10
Magento\Framework\Amqp\Test\Unit\ConfigPoolTest
Definition:
ConfigPoolTest.php:8