Skip to content

Commit

Permalink
Update testing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Nov 24, 2024
1 parent 189a25c commit ec1ebd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use Revolution\Bluesky\FeedGenerator\FeedGenerator;

public function test_feed_generator(): void
{
FeedGenerator::register('test', function (?int $limit, ?string $cursor) {
FeedGenerator::register(name: 'test', algo: function (?int $limit, ?string $cursor) {
$posts = Bluesky::searchPosts(q: '#bluesky')->collect('posts');
$feed = $posts->map(function (array $post) {
return ['post' => data_get($post, 'uri')];
Expand Down

0 comments on commit ec1ebd7

Please sign in to comment.