From 1784278a59990dc5caa96020d7d6dc3fa740c7d2 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 26 Sep 2018 19:06:09 -0700 Subject: [PATCH] Fixed importer email test --- tests/unit/ImporterTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/unit/ImporterTest.php b/tests/unit/ImporterTest.php index 37bb137b79..a0b4020c9e 100644 --- a/tests/unit/ImporterTest.php +++ b/tests/unit/ImporterTest.php @@ -710,8 +710,13 @@ EOT; 'name' => 'Morar-Ward' ]); - Notification::assertSentTo(User::find(2), \App\Notifications\WelcomeNotification::class); - Notification::assertNotSentTo(User::find(3), \App\Notifications\WelcomeNotification::class); + // These are commented out because we've temporarily disabled emailing new users on import, + // since some folks shouldn't be emailed. + // Uncomment these once the ability to decide that per import or per user via CSV has been + // implemented in the importer. + // Notification::assertSentTo(User::find(2), \App\Notifications\WelcomeNotification::class); + // Notification::assertNotSentTo(User::find(3), \App\Notifications\WelcomeNotification::class); + Notification::assertNotSentTo(User::find(2), \App\Notifications\WelcomeNotification::class); } private function import($importer, $mappings = null) {