feat: add persistent mobile notifications
CI / 🧪 Tests Laravel (push) Successful in 2m7s
CI / 🐳 Build & Push Image (push) Successful in 42s

This commit is contained in:
2026-08-11 16:46:05 +02:00
parent bd1b4bba20
commit df4f523089
24 changed files with 822 additions and 75 deletions
@@ -50,6 +50,15 @@ it('sends engagement reminders only to eligible mobile users', function () {
'platform' => 'ios',
]);
$optedOutUser = User::factory()->create([
'locale' => 'fr',
'engagement_reminders_enabled' => false,
]);
$optedOutUser->deviceTokens()->create([
'expo_push_token' => 'ExponentPushToken[opted-out]',
'platform' => 'ios',
]);
$this->artisan('notifications:send-engagement-reminders')
->expectsOutput('1 engagement reminder notification(s) sent.')
->assertSuccessful();