File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public function purgeQueue(Queue $queue): void
186
186
throw PurgeQueueNotSupportedException::providerDoestNotSupportIt ();
187
187
}
188
188
189
- private function getStomp (): BufferedStompClient
189
+ public function getStomp (): BufferedStompClient
190
190
{
191
191
if (false == $ this ->stomp ) {
192
192
$ stomp = call_user_func ($ this ->stompFactory );
Original file line number Diff line number Diff line change @@ -213,6 +213,13 @@ public function testCreateTemporaryQueuesWithUniqueNames()
213
213
$ this ->assertNotEquals ($ fooTempQueue ->getStompName (), $ barTempQueue ->getStompName ());
214
214
}
215
215
216
+ public function testShouldGetBufferedStompClient ()
217
+ {
218
+ $ context = new StompContext ($ this ->createStompClientMock ());
219
+
220
+ $ this ->assertInstanceOf (BufferedStompClient::class, $ context ->getStomp ());
221
+ }
222
+
216
223
/**
217
224
* @return \PHPUnit_Framework_MockObject_MockObject|BufferedStompClient
218
225
*/
You can’t perform that action at this time.
0 commit comments