Skip to content

Commit a176586

Browse files
committed
Merge pull request #54 from pasxel/master
Fix #53 IronMqProvider return message's body with name of queue
2 parents 27d70f3 + adb8986 commit a176586

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Provider/IronMqProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function publish(array $message, array $options = [])
140140

141141
$result = $this->ironmq->postMessage(
142142
$this->getNameWithPrefix(),
143-
json_encode([$this->name => $message]),
143+
json_encode($message),
144144
[
145145
'timeout' => $options['message_timeout'],
146146
'delay' => $options['message_delay'],

tests/MockClient/IronMqMockClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getMessages($queue, $count, $timeout)
7474
{
7575
$response = new \stdClass;
7676
$response->id = 123;
77-
$response->body = "test";
77+
$response->body = '{"test":{"foo":"bar"}}';
7878
$response->timeout = 60;
7979
$response->reserved_count = 1;
8080
$response->push_status = new \stdClass;

0 commit comments

Comments
 (0)