]> BookStack Code Mirror - bookstack/blobdiff - tests/TestEmailTest.php
Added 404 response for non-existing setting categories
[bookstack] / tests / TestEmailTest.php
index 0a2091fe3e92bc0dd018acc216087b107e37e7a1..e0350371afe00707ce8eb87f6597018e3f94f424 100644 (file)
@@ -34,7 +34,7 @@ class TestEmailTest extends TestCase
         $this->app[Dispatcher::class] = $mockDispatcher;
 
         $exception = new \Exception('A random error occurred when testing an email');
-        $mockDispatcher->shouldReceive('send')->andThrow($exception);
+        $mockDispatcher->shouldReceive('sendNow')->andThrow($exception);
 
         $admin = $this->getAdmin();
         $sendReq = $this->actingAs($admin)->post('/settings/maintenance/send-test-email');