trypost/tests/Unit/Support
Paulo Castellano 2c1cd4ec61 Ignore never-started subscriptions when detecting a first-time customer
A raw subscriptions()->exists() check treated a leftover incomplete /
incomplete_expired row — which Cashier persists when a first payment
fails or a 3DS challenge is abandoned — as a prior subscription, so a
genuinely new customer retrying after a failed first attempt lost the
$1 coupon and was charged full price. Exclude those never-started
statuses so only a subscription that actually started (active, canceled,
etc.) marks the account as a returning customer.
2026-07-09 16:03:25 -03:00
..
Billing Ignore never-started subscriptions when detecting a first-time customer 2026-07-09 16:03:25 -03:00
HexColorNameTest.php feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00
MentionParserTest.php feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
PostMediaRulesTest.php fix(api): roll back hosted media when an inline url batch partially fails 2026-06-28 20:59:21 -03:00
PostStatusRulesTest.php refactor(posts): replace PostStatusGuard with PostStatusRules for editing and deletion checks 2026-05-21 19:32:42 -03:00