Skip to content

A free open source IT asset/license management system

Fixed importer email test

snipe1784278a5999
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)
{