This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree 2 files changed +2
-2
lines changed
Test/Unit/Model/ResourceModel 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ public function getMessages($queueName, $limit = null)
151
151
'queue_message_status.status IN (?) ' ,
152
152
[QueueManagement::MESSAGE_STATUS_NEW , QueueManagement::MESSAGE_STATUS_RETRY_REQUIRED ]
153
153
)->where ('queue.name = ? ' , $ queueName )
154
- ->order ('queue_message_status.updated_at DESC ' );
154
+ ->order ('queue_message_status.updated_at ASC ' );
155
155
156
156
if ($ limit ) {
157
157
$ select ->limit ($ limit );
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ public function testGetMessages()
206
206
]
207
207
)->willReturnSelf ();
208
208
$ select ->expects ($ this ->once ())
209
- ->method ('order ' )->with ('queue_message_status.updated_at DESC ' )->willReturnSelf ();
209
+ ->method ('order ' )->with ('queue_message_status.updated_at ASC ' )->willReturnSelf ();
210
210
$ select ->expects ($ this ->once ())->method ('limit ' )->with ($ limit )->willReturnSelf ();
211
211
$ connection ->expects ($ this ->once ())->method ('fetchAll ' )->with ($ select )->willReturn ($ messages );
212
212
$ this ->assertEquals ($ messages , $ this ->queue ->getMessages ($ queueName , $ limit ));
You can’t perform that action at this time.
0 commit comments