trypost/tests/Feature/Services
Paulo Castellano 29e90c52af
fix: LinkedIn company page post URL missing the post ID (#272)
* fix: LinkedIn company page post URL missing the post ID

LinkedInPagePublisher::postUrl() built a company/{username}/posts/
URL but never interpolated $postId into it, so the "view on LinkedIn"
link for company page posts always ended at the trailing slash.

Per LinkedIn's Posts API docs, the correct public URL for any
published post (member or organization) is always
feed/update/{postId} — so the override is removed and the class now
inherits the correct base implementation.

Closes #271

* address code review: backfill historical URLs, fix stale docblock, close test gaps

- Add social:backfill-linkedin-page-post-urls to recompute platform_url
  for LinkedIn Page posts published before the fix, whose broken
  company/{username}/posts/ URL was already persisted and never
  recomputed. Supports --dry-run.
- Fix AbstractLinkedInPublisher::postUrl() docblock, which still
  claimed company pages override it after the override was removed.
- LinkedInPagePublisherTest: assert result['url'] in the image and
  carousel publish tests (previously only asserted result['id']);
  add a null-postId case; collapse the two username-branch tests
  (now dead code) into one dataset-driven test plus a dedicated
  null-postId test.
2026-08-11 12:36:14 -03:00
..
Social fix: LinkedIn company page post URL missing the post ID (#272) 2026-08-11 12:36:14 -03:00
InstagramPublisherTest.php Harden Instagram story image fitting and cover it end to end 2026-07-16 20:09:43 -03:00
XPublisherTest.php Stop publishers/analytics from rotating still-valid tokens 2026-07-03 08:30:58 -03:00
YouTubePublisherTest.php test: move publisher tests from Unit to Feature 2026-05-12 19:02:51 -03:00