File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Test/Unit/Model/ResourceModel Expand file tree Collapse file tree 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)
151151 'queue_message_status.status IN (?) ' ,
152152 [QueueManagement::MESSAGE_STATUS_NEW , QueueManagement::MESSAGE_STATUS_RETRY_REQUIRED ]
153153 )->where ('queue.name = ? ' , $ queueName )
154- ->order ('queue_message_status.updated_at DESC ' );
154+ ->order ('queue_message_status.updated_at ASC ' );
155155
156156 if ($ limit ) {
157157 $ select ->limit ($ limit );
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ public function testGetMessages()
206206 ]
207207 )->willReturnSelf ();
208208 $ 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 ();
210210 $ select ->expects ($ this ->once ())->method ('limit ' )->with ($ limit )->willReturnSelf ();
211211 $ connection ->expects ($ this ->once ())->method ('fetchAll ' )->with ($ select )->willReturn ($ messages );
212212 $ this ->assertEquals ($ messages , $ this ->queue ->getMessages ($ queueName , $ limit ));
You can’t perform that action at this time.
0 commit comments