feat: add persistent mobile notifications
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user