Skip to content

Commit df52f3a

Browse files
committed
wip
1 parent 76a53ef commit df52f3a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

tests/src/Algos/GenerateUserFeedTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
});
1515

1616
it('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
});

tests/src/TestClasses/GenerateUserFeed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)