You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/tests/Feature
Your Name 7b11b72e1d test(federation): run AP delivery tests in production env
ActivityPubDeliveryService::pool() and queueDelivery() only perform HTTP
delivery when app()->environment('production'); outside production they log
and return. The pool/job delivery tests were written before that guard was
added (commit 868e09b64) and never forced production, so no requests were
made and every assertSent/assertSentCount failed (6 failing tests).

Wrap the delivery-exercising tests in a forged production environment
(restored afterwards) and seed the public-ips DNS cache plus an empty
banned-domains cache so validateDestination() passes without a real DNS
lookup or DB query. Seed after factory creation, since the lazy DB refresh
can flush the cache store.

Also fix a by-value capture bug in the onError assertions: the $errors
array was captured through an arrow-fn wrapper, so the inner callback's
by-reference mutations never reached the assertion. Use a regular closure.

No production code changed; the production delivery gate is intended
behavior.
2 weeks ago
..
Account Remove sha256 verification from MediaMoveStorageLocalToCloud 2 weeks ago
Admin Use absolute path for /horizon dashboard redirect 2 weeks ago
Api Enforce can-post role check on POST /api/v2/media 2 weeks ago
Auth Fix stale-CSRF login recovery render callback 2 weeks ago
AuthScope refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Compose refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Console lint 2 weeks ago
CriticalRoutes Use LazilyRefreshDatabase instead of plain RefreshDatabase in tests 2 weeks ago
Directory Exclude private profiles from public directory and clear suggestable on going private 2 weeks ago
Federation Validate remote update attachments before detaching existing media 2 weeks ago
Framework Rewrite 2FA tests for the pending-login refactor 2 weeks ago
InternalPipeline Expand test coverage for storage_used improvements 2 weeks ago
LikePipeline Federate unlike before deleting Like so retries can deliver 2 weeks ago
Media Check media blocklist before storing uploads to prevent orphaned files 2 weeks ago
MediaPipeline Fix account storage limit not freeing on media deletion (#7169) 2 weeks ago
Search Use ILIKE for case-insensitive search on PostgreSQL 2 weeks ago
Security Merge pull request #7166 from shleeable/fix/dangerzone-logout-clear-2fa-session 2 weeks ago
Services Delete NotificationEpochFallbackTest.php 2 weeks ago
Settings Fix missing email verification dispatch on settings email change 2 weeks ago
StatusPipeline Invalidate notification cache when deleting a status 2 weeks ago
ActivityPubDeliveryConnectionTest.php fix(federation): swallow ConnectionException on synchronous AP delivery 2 weeks ago
ActivityPubDeliveryServiceTest.php test(federation): run AP delivery tests in production env 2 weeks ago
AdminInviteVerificationEmailTest.php Send verification email for admin-invite users that require verification 2 weeks ago
AdminRemoveCwTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
CommentPrivatePostTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
ComposeControllerTest.php Fix tests 2 weeks ago
CuratedRegisterEmailEscapeTest.php Escape message in curated register details email to fix reflected XSS 2 weeks ago
DedupeQueryPatternsTest.php Extract duplicated blocked-id and duplicate-shortcode query patterns 3 weeks ago
DeleteAccountStatusEditsTest.php Purge status_edits on account and status deletion 2 weeks ago
DeleteWorkerAuthorizationTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
FollowerServiceFollowingIdsTest.php Extract following-ids lookup into FollowerService::getFollowingIds 3 weeks ago
HashtagFollowProfileGuardTest.php Apply Pint lint fixes to session test files 2 weeks ago
HttpClientMigrationTest.php test(federation): run AP delivery tests in production env 2 weeks ago
ImportInstagramMissingProfileTest.php Apply Pint lint fixes to session test files 2 weeks ago
LoginTest.php Fix tests 2 weeks ago
ModelNamespaceMigrationTest.php test: verify morph map resolves legacy model namespaces 4 weeks ago
NotificationServiceTest.php Fix web notifications not loading (#7195) 2 weeks ago
NotificationTransformerStatusHydrationTest.php Fix web notifications not loading (#7195) 2 weeks ago
PollVotePrivateAuthTest.php Enforce poll scope authorization on vote endpoint 2 weeks ago
PrivacySettingsRemoveAllTest.php Fix remove-all follower purge chunkById key and gate the route behind dangerzone 2 weeks ago
RemoteAuthServiceTest.php Fix tests 2 weeks ago
RemoteOidcTest.php Mark OIDC login session password-confirmed to fix dangerzone lockout 2 weeks ago
SeasonalAggregationTest.php Fix tests 2 weeks ago
SecureMediaFetchHeadersTest.php Route StoryFetch outbound requests through SSRF-hardened fetch service 2 weeks ago
StatusDeleteCleanupTest.php Isolate fanout delivery failures from StatusDelete local cleanup 2 weeks ago
StatusHashtagCachedCountTest.php Trigger StatusHashtag observer on deletion to keep cached_count accurate 2 weeks ago
StoryExpireRemoteCacheTest.php Update StoryExpireRemoteCacheTest.php 2 weeks ago
StoryFetchSsrfTest.php Route StoryFetch outbound requests through SSRF-hardened fetch service 2 weeks ago
StoryIndexAuthorTtlTest.php Extend story author-key TTL instead of overwriting so it survives to the longest-lived story 2 weeks ago
ValidUsernameTest.php refactor: rename PixelfedUsername rule to ValidUsername 4 weeks ago