Overview
Most features are available via theBluesky Facade, so you can use standard Laravel mocks when writing tests. For general Laravel package testing, see package-testing.
Facade mocks
UseBluesky::expects() to mock entire method chains.
HTTP fake
laravel-bluesky uses Laravel’s HTTP client internally. Add Http::preventStrayRequests() to your test setUp() to catch unexpected external requests immediately.
Features that cannot be mocked
FeedGenerator
FeedGenerator is called by the Bluesky server, so there is no end-to-end mock. However, the algorithm part of FeedGenerator can be mocked.Core
The “Core” functionality of Bluesky/AtProtocol does not involve external access, so mocking is not needed.Source: docs/testing.md