File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1414});
1515
1616it ('will determine that algo is success ' , function () {
17- $ algo = GenerateUserFeed::make ()->model ($ this ->user );
17+ $ algo = GenerateUserFeed::make ()->model ($ this ->user )-> run () ;
1818
19- expect ($ algo ->run ())->toBe (Status::Success);
19+ expect ($ algo ->status )->toBe (Status::Success);
20+ });
21+
22+ it ('will succeed with message ' , function () {
23+ $ algo = GenerateUserFeed::make ()->model ($ this ->user )->run ();
24+
25+ expect ($ algo ->message )->toBe ('Feed generated successfully ' );
2026});
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function handle(): Result
2626
2727 $ this ->sendBroadcast ($ hash );
2828
29- return $ result ->success ();
29+ return $ result ->success (' Feed generated successfully ' );
3030 }
3131
3232 public function model (User $ user ): self
You can’t perform that action at this time.
0 commit comments