trypost/tests/Unit/Rules
Paulo Castellano beea8a5f97 feat(posts): block combining an image and a video in one post
A Bluesky post embed is images XOR video, so a post that carries both can't
be published there. Enforce it per selected platform:

- Add ContentType::supportsMixedMedia() (false only for BlueskyPost) and reject
  image+video in ContentTypeCompatibleWithMedia when the type forbids it.
- Mirror it client-side (useMediaRules forbidsMixedMedia + usePostCompliance)
  so the editor blocks scheduling with an inline reason before submit, like
  every other per-platform compatibility check.
- Add the no_mixed_media message in all three locales (en/es/pt-BR).
- Cover the rule and enum, including the GIF-counts-as-image case.
2026-06-23 14:30:38 -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(posts): block combining an image and a video in one post 2026-06-23 14:30:38 -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