trypost/tests/Feature/Social
Falconiere Barbosa a2a7f44c9a
refactor(linkedin): drive OAuth scopes from LINKEDIN_SCOPES env via config
Replace the additive LINKEDIN_EXTRA_SCOPES approach with a single
full-override env var per flow, exploded into an array at the config
layer (config/trypost.php -> platforms.linkedin{,-page}.scopes). This
keeps env values as plain comma-separated strings, lets self-hosters
override the entire set in one place, and removes the controller-side
scope-merge logic.

- config/trypost.php: explode LINKEDIN_SCOPES / LINKEDIN_PAGE_SCOPES
  into the scopes arrays (deprecated r_basicprofile stays out of the
  personal default)
- LinkedInController: drop resolveScopes(), read config scopes directly
- LinkedInPageController: drop the hardcoded $scopes property, read
  config scopes at both call sites
- tests: drive the connect scope assertions from config overrides
- .env.example, docker/.env.docker.example: document LINKEDIN_SCOPES
  and LINKEDIN_PAGE_SCOPES
2026-06-10 15:04:57 -03:00
..
BlueskyControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
FacebookControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
InstagramControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
LinkedInControllerTest.php refactor(linkedin): drive OAuth scopes from LINKEDIN_SCOPES env via config 2026-06-10 15:04:57 -03:00
LinkedInPageControllerTest.php fix(linkedin-page): persist OAuth scopes through the page-picker flow 2026-05-14 11:48:30 -03:00
MastodonControllerTest.php refactor: implement lazy token refreshing and persist Mastodon scopes 2026-05-03 21:58:25 -03:00
PinterestControllerTest.php fix(linkedin,pinterest): split CSV/space-joined OAuth scopes before saving 2026-05-14 10:55:53 -03:00
ThreadsControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
TikTokControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
XControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
YouTubeControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00