trypost/tests/Feature/Jobs
Paulo Castellano abe687d0fa
Fall back to display name when a published-post email has no username (#325)
* Fall back to display name when a published-post email has no username.

Facebook Pages often have no vanity username, which left the email as "Facebook Page (@)". Use username, then display name, and omit the empty parentheses when both are missing.

* Move the notification account label onto PostPlatform.

The fallback belongs on the row that always has a platform, so mail and in-app notify can call one method instead of guarding a missing social account at every call site.

* Cover the in-app published/failed notification body for Facebook Pages.

The email tests were not enough — SendNotification body is what the in-app inbox shows, and that path also goes through notificationLabel().
2026-09-03 12:51:44 -03:00
..
PostHog Allow multiple social accounts per network via env (#286) 2026-08-25 07:28:14 -03:00
PublishPostTest.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
PublishToSocialPlatformTest.php Fall back to display name when a published-post email has no username (#325) 2026-09-03 12:51:44 -03:00
RefreshSocialTokenTest.php Remove the X API reads that buy nothing (#299) 2026-08-20 17:58:16 -03:00
SendNotificationTest.php feat: notification system with SendNotification job, dialog UI, tests 2026-03-30 16:47:03 -03:00
VerifyUpcomingPostConnectionsTest.php Make the test suite pass on MySQL (#307) 2026-08-29 11:05:33 -03:00