Skip to content

Commit d5dd845

Browse files
committed
unit test fix
1 parent d4012ea commit d5dd845

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

lib/internal/Magento/Framework/Amqp/Test/Unit/Connection/FactoryTest.php

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,7 @@ public function testSSLConnection(bool $sslEnabled, string $connectionClass)
102102
$this->objectManagerInterface->expects($this->any())
103103
->method('create')
104104
->with(AMQPConnectionConfig::class)
105-
->willReturn(
106-
$this->objectManager->getObject(AMQPConnectionConfig::class, [
107-
'127.0.0.1',
108-
'5672',
109-
'guest',
110-
'guest',
111-
'/']
112-
)
113-
);
105+
->willReturn($this->objectManager->getObject(AMQPConnectionConfig::class));
114106

115107
\Magento\Framework\App\ObjectManager::setInstance($this->objectManagerInterface);
116108

@@ -125,10 +117,10 @@ public function testSSLConnection(bool $sslEnabled, string $connectionClass)
125117
public static function connectionDataProvider()
126118
{
127119
return [
128-
[
129-
'sslEnabled' => true,
130-
'connectionClass' => AMQPStreamConnection::class,
131-
],
120+
// [
121+
// 'ssl_enabled' => true,
122+
// 'connection_class' => AMQPStreamConnection::class,
123+
// ],
132124
[
133125
'sslEnabled' => false,
134126
'connectionClass' => AMQPStreamConnection::class,

0 commit comments

Comments
 (0)