trypost/tests/Unit/Rules
Paulo Castellano 14e44538a7 feat(linkedin): enforce PDF/media compatibility on API and MCP
Make the document (PDF) exclusivity validation — previously web-only — also apply when scheduling/publishing via the public API and MCP, so a misconfigured post can't slip through these entry points.

- ContentTypeCompatibleWithMedia: stored-media fallback for partial updates + a stored-state assertStoredPostCompatible(Post)
- MCP PublishPostTool: assert stored-state compatibility before publish (the media-side mirror of assertStoredPostPublishable)
- API UpdatePostRequest: validate each platform's effective content_type against effective media on schedule/publish (covers publishing without resubmitting content_type)
- MCP UpdatePostTool: apply the rule on schedule with stored-media fallback
- Tests: API + MCP happy + rejection paths, plus rule fallback/precedence units
2026-06-24 17:08:48 -03:00
..
ContentFitsPlatformLimitsTest.php fix(posts): block scheduling when content exceeds any platform's char limit 2026-05-11 19:39:41 -03:00
ContentTypeCompatibleWithMediaTest.php feat(linkedin): enforce PDF/media compatibility on API and MCP 2026-06-24 17:08:48 -03:00
ContentTypeMatchesPlatformTest.php test: add coverage for validation rules across REST + MCP + custom rules 2026-05-04 13:31:44 -03:00
ContentTypeMatchesPostPlatformTest.php test: add coverage for validation rules across REST + MCP + custom rules 2026-05-04 13:31:44 -03:00