File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 195195 $ worker ->runNextJob ('default ' );
196196
197197 $ logs = WPQueue::logs ()->recent (10 );
198- $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
198+ $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
199199
200200 expect ($ failed )->not ->toBeEmpty ();
201201});
210210
211211 // Проверяем что задача провалилась
212212 $ logs = WPQueue::logs ()->recent (10 );
213- $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
213+ $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
214214
215215 expect ($ failed )->not ->toBeEmpty ();
216216
221221
222222 // Проверяем что теперь 2 проваленные задачи
223223 $ logs = WPQueue::logs ()->recent (10 );
224- $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
224+ $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
225225
226226 expect (count ($ failed ))->toBe (2 );
227227});
You can’t perform that action at this time.
0 commit comments