Skip to content

Commit a4ef2d8

Browse files
committed
This was testing non-rabbitmq.
1 parent a485e7d commit a4ef2d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/stomp/StompContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct($stomp, string $extensionType)
5252
}
5353

5454
$this->extensionType = $extensionType;
55-
$this->useExchangePrefix = ExtensionType::RABBITMQ === $extensionType ? true : false;
55+
$this->useExchangePrefix = ExtensionType::RABBITMQ === $extensionType;
5656
}
5757

5858
/**

pkg/stomp/Tests/StompContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function testShouldCreateTopicInstanceWithExchangePrefix()
9494

9595
public function testShouldCreateTopicInstanceWithTopicPrefix()
9696
{
97-
$context = new StompContext($this->createStompClientMock(), ExtensionType::RABBITMQ);
97+
$context = new StompContext($this->createStompClientMock(), ExtensionType::ARTEMIS);
9898

9999
$topic = $context->createTopic('the name');
100100

0 commit comments

Comments
 (0)